@@ -2,9 +2,15 @@
SCRIPTNAME=$0
function get_logserver {
- while [ ! -s /var/lib/dhcpcd/*.info ] ; do
- DHCPINFOFILE=`grep -H ^LOGSERVER /var/lib/dhcpcd/*.info |awk -F: '{print $1}' 2>/dev/null`
+ cnt=0
+ echo -n "Trying to get logserver from dhcp info "
+ while [ ! -s /var/lib/dhcpcd/*.info ] || [ "$cnt" <= "30" ] ; do
+ DHCPINFOFILE=`grep -H ^LOGSERVER /var/lib/dhcpcd/*.info 2>/dev/null | awk -F: '{print $1}' 2>/dev/null`
+ echo -n "."
+ sleep 1
+ cnt=`expr $cnt + 1`
done
+ echo " "
if [ -f "${DHCPINFOFILE}" ] ; then
. ${DHCPINFOFILE}
export LOGSERVER
|