From 1befdbf866c99106b7cd647c6e2f03defe447085 Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 7 Mar 2013 10:03:09 +0000 Subject: Tune up a bit dhclient-script and call the kill state command only once its enough --- sbin/dhclient-script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sbin/dhclient-script') diff --git a/sbin/dhclient-script b/sbin/dhclient-script index 814d1b9..26b13de 100755 --- a/sbin/dhclient-script +++ b/sbin/dhclient-script @@ -77,7 +77,7 @@ delete_old_states() { if [ -z "${OLD_ROUTER}" ] && [ -f /tmp/${interface}_router ]; then OLD_ROUTER = `cat /tmp/${interface}_router` fi - if [ -n $OLD_ROUTER ]; then + if [ -n "${OLD_ROUTER}" ]; then $LOGGER "Comparing Routers: Old: ${OLD_ROUTER} New: ${new_routers}" if [ "${OLD_ROUTER}" != "${new_routers}" ]; then $LOGGER "Removing states through old gateway '${OLD_ROUTER}' (new gateway '${new_routers}')" -- cgit v1.1