diff options
-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}" |