summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-11-09 05:38:47 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-11-09 05:38:47 +0000
commitb67a9fa223fc4a0736d2aa0f10866c7002d2e900 (patch)
tree1ce29d60b614dc2e69165aa9eb0d631c5d3c5889 /sbin
parent52ea74f3221a1b012c3c143a0ce2931b73909da9 (diff)
downloadpfsense-b67a9fa223fc4a0736d2aa0f10866c7002d2e900.zip
pfsense-b67a9fa223fc4a0736d2aa0f10866c7002d2e900.tar.gz
Correctly set old wan ip
Diffstat (limited to 'sbin')
-rwxr-xr-xsbin/dhclient-script7
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/dhclient-script b/sbin/dhclient-script
index 3eab1ae..69e1401 100755
--- a/sbin/dhclient-script
+++ b/sbin/dhclient-script
@@ -86,6 +86,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() {
@@ -201,9 +205,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
}
#
OpenPOWER on IntegriCloud