[Bug 50430] Re: NIS has problems starting before the network comes up
gwir
50430 at bugs.launchpad.net
Thu May 5 09:28:44 UTC 2011
Hello,
This is the script i'm using :
/etc/network/if-up.d/net_is_configured :
#!/bin/sh
# Testing if network is up before continuing
network=`route -n | sed -ne '/^224/d' -e '/^127/d' -e '/^[0-9]/p'`;
timeout=0
while [ "${network}" = "" ] && [ ${timeout} -le 20 ]
do network=`route -n | sed -ne '/^224/d' -e '/^127/d' -e '/^[0-9]/p'`;
echo -n ".";
timeout=$((${timeout} + 1));
sleep 1;
done
if [ ${timeout} -ge 20 ];then
echo " Pas de connexion réseau";
else
echo " Done";
fi
Hope this will help you
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to autofs in Ubuntu.
https://bugs.launchpad.net/bugs/50430
Title:
NIS has problems starting before the network comes up
More information about the Ubuntu-server-bugs
mailing list