summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-03-07 10:03:09 +0000
committerErmal <eri@pfsense.org>2013-03-07 10:03:35 +0000
commit1befdbf866c99106b7cd647c6e2f03defe447085 (patch)
tree827ae57a7a4a348a568e5dee728832b09dee2d0e /sbin
parenteff8ea7dfa46d2aa55915e1e3850b74803491439 (diff)
downloadpfsense-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')
-rwxr-xr-xsbin/dhclient-script2
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}')"
OpenPOWER on IntegriCloud