diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-06-10 11:28:21 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-06-10 11:28:21 -0300 |
commit | ab3c1e240b0a3f13061f41a40acd2bbebee8a73f (patch) | |
tree | a99e75fcaec28802964e7fa8311fc6e5b45fdcc7 | |
parent | cd49f9cd5d21a6592ba690cd315f19266092bee5 (diff) | |
download | pfsense-ab3c1e240b0a3f13061f41a40acd2bbebee8a73f.zip pfsense-ab3c1e240b0a3f13061f41a40acd2bbebee8a73f.tar.gz |
Revert "Fix sh syntax"
This reverts commit cd49f9cd5d21a6592ba690cd315f19266092bee5.
-rwxr-xr-x | sbin/dhclient-script | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/dhclient-script b/sbin/dhclient-script index c09374b..8421bfd 100755 --- a/sbin/dhclient-script +++ b/sbin/dhclient-script @@ -62,7 +62,7 @@ delete_old_states() { $LOGGER "Starting delete_old_states()" # If the IP changed, remove states from the old one if [ -f /var/db/${interface}_ip ]; then - OLD_IP=`cat /var/db/${interface}_ip` + OLD_IP = `cat /var/db/${interface}_ip` $LOGGER "Comparing IPs: Old: ${OLD_IP} New: ${new_ip_address}" if [ -n "${OLD_IP}" ] && [ "${OLD_IP}" != "${new_ip_address}" ]; then $LOGGER "Removing states from old IP '${OLD_IP}' (new IP '${new_ip_address}')" @@ -72,10 +72,10 @@ delete_old_states() { fi # Delete states through old gateway if it's not the same if [ -n "${old_routers}" ]; then - OLD_ROUTER=$old_routers + OLD_ROUTER = $old_routers fi if [ -z "${OLD_ROUTER}" ] && [ -f /tmp/${interface}_router ]; then - OLD_ROUTER=`cat /tmp/${interface}_router` + OLD_ROUTER = `cat /tmp/${interface}_router` fi if [ -n "${OLD_ROUTER}" ]; then $LOGGER "Comparing Routers: Old: ${OLD_ROUTER} New: ${new_routers}" |