Changes of Revision 44
[-] [+] | Changed | root.tar.bz2/etc/sysconfig/network/scripts/logserver-up.sh |
@@ -2,7 +2,9 @@ SCRIPTNAME=$0 function get_logserver { - DHCPINFOFILE=`grep -H ^LOGSERVER /var/lib/dhcpcd/*.info |awk -F: '{print $1}'` + while [ ! -s /var/lib/dhcpcd/*.info ] ; do + DHCPINFOFILE=`grep -H ^LOGSERVER /var/lib/dhcpcd/*.info |awk -F: '{print $1}' 2>/dev/null` + done if [ -f "${DHCPINFOFILE}" ] ; then . ${DHCPINFOFILE} export LOGSERVER |