version 1.121, 2008/06/09 22:56:42 |
version 1.122, 2008/07/23 16:05:47 |
|
|
echo "netstart: $file: No such file or directory" |
echo "netstart: $file: No such file or directory" |
return |
return |
fi |
fi |
if [ "$(stat -f "%SLp %u %g" $file)" != "--- 0 0" ]; then |
if [ "$(stat -Lf "%SLp %u %g" $file)" != "--- 0 0" ]; then |
echo "WARNING: $file is insecure, fixing permissions" |
echo "WARNING: $file is insecure, fixing permissions" |
chmod o-rwx $file |
chmod -LR o-rwx $file |
chown root.wheel $file |
chown -LR root.wheel $file |
fi |
fi |
ifconfig $if > /dev/null 2>&1 |
ifconfig $if > /dev/null 2>&1 |
if [ "$?" != "0" ]; then |
if [ "$?" != "0" ]; then |