summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-06-10 10:54:56 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-06-10 10:54:56 -0300
commitcd49f9cd5d21a6592ba690cd315f19266092bee5 (patch)
treefc6df672ba1ede70cd15e4fb30b1062f6124547f
parent4cc2ae78d3027c349969437f08a88b1fb88c9de8 (diff)
downloadpfsense-cd49f9cd5d21a6592ba690cd315f19266092bee5.zip
pfsense-cd49f9cd5d21a6592ba690cd315f19266092bee5.tar.gz
Fix sh syntax
-rwxr-xr-xsbin/dhclient-script6
1 files changed, 3 insertions, 3 deletions
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}"
OpenPOWER on IntegriCloud