From cd49f9cd5d21a6592ba690cd315f19266092bee5 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 10 Jun 2014 10:54:56 -0300 Subject: Fix sh syntax --- sbin/dhclient-script | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sbin/dhclient-script') diff --git a/sbin/dhclient-script b/sbin/dhclient-script index 8421bfd..c09374b 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}" -- cgit v1.1