diff options
author | Ermal <eri@pfsense.org> | 2013-03-07 10:03:09 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-03-07 10:03:35 +0000 |
commit | 1befdbf866c99106b7cd647c6e2f03defe447085 (patch) | |
tree | 827ae57a7a4a348a568e5dee728832b09dee2d0e /sbin/dhclient-script | |
parent | eff8ea7dfa46d2aa55915e1e3850b74803491439 (diff) | |
download | pfsense-1befdbf866c99106b7cd647c6e2f03defe447085.zip pfsense-1befdbf866c99106b7cd647c6e2f03defe447085.tar.gz |
Tune up a bit dhclient-script and call the kill state command only once its enough
Diffstat (limited to 'sbin/dhclient-script')
-rwxr-xr-x | sbin/dhclient-script | 2 |
1 files changed, 1 insertions, 1 deletions
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}')" |