Return to netstart CVS log | Up to [local] / src / etc |
version 1.118, 2008/01/17 12:36:33 | version 1.119, 2008/04/17 19:03:25 | ||
---|---|---|---|
|
|
||
return | return | ||
fi | fi | ||
file=/etc/hostname.$if | |||
if [ "$(stat -f "%SLp" $file)" != "---" ]; then | |||
echo "WARNING: $file is insecure, fixing permissions" | |||
chmod o-rwx $file | |||
fi | |||
ifconfig $if > /dev/null 2>&1 | ifconfig $if > /dev/null 2>&1 | ||
if [ "$?" != "0" ]; then | if [ "$?" != "0" ]; then | ||
# Try to create interface if it does not exist | # Try to create interface if it does not exist |