X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=fai%2Fconfig%2Fscripts%2FDEBIAN%2F20-capabilities;h=b057587a65d9f5328592f7c1772a0b384576a125;hp=0b3e2e513b95c9db8af89042593b435fbe0bdb03;hb=7f77555b3d92709034fe41919358053c650c71e1;hpb=f384863a1c4dada1a241e693ab99b8a850edf34f diff --git a/fai/config/scripts/DEBIAN/20-capabilities b/fai/config/scripts/DEBIAN/20-capabilities index 0b3e2e5..b057587 100755 --- a/fai/config/scripts/DEBIAN/20-capabilities +++ b/fai/config/scripts/DEBIAN/20-capabilities @@ -14,7 +14,7 @@ if [ ! -x $target/sbin/setcap ] ; then fi for FILE in /bin/ping /bin/ping6 /usr/bin/fping /usr/bin/fping6; do - if [ -x $target/$FILE ] ; then + if [ -x $target/$FILE -a ! -h $target/$FILE ] ; then if $ROOTCMD /sbin/setcap cap_net_raw+ep $FILE; then echo "Setcap worked! $FILE is not suid!" fi