diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-11-09 05:38:41 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-11-09 05:38:41 +0000 |
commit | 866d2a177ef7161f04e335804376178256228c77 (patch) | |
tree | c3975bd1f3062a96079f7ef55a46f2fb12a2d33e /sbin/dhclient-script | |
parent | 0697645dfbe0c063ea67d17e2d0e6573c1920f8e (diff) | |
download | pfsense-866d2a177ef7161f04e335804376178256228c77.zip pfsense-866d2a177ef7161f04e335804376178256228c77.tar.gz |
Correctly set old wan ip
Diffstat (limited to 'sbin/dhclient-script')
-rwxr-xr-x | sbin/dhclient-script | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/dhclient-script b/sbin/dhclient-script index 6258f81..0ad09f7 100755 --- a/sbin/dhclient-script +++ b/sbin/dhclient-script @@ -85,6 +85,10 @@ add_new_address() { echo $new_routers > /tmp/${interface}_router cp /var/db/${interface}_ip /tmp/rc.newwanip_oldip 2>/dev/null echo $new_ip_address > /var/db/${interface}_ip + + echo $interface > /tmp/rc.newwanip + echo $new_ip_address >> /tmp/rc.newwanip + } delete_old_alias() { @@ -200,9 +204,6 @@ add_new_resolv_conf() { # Notify rc.newwanip of changes to an interface notify_rc_newwanip() { - $LOGGER "notify_rc_newwanip()" - echo $interface > /tmp/rc.newwanip - echo $old_ip_address > /tmp/rc.newwanip_oldip } # |