diff options
author | Ermal <eri@pfsense.org> | 2010-09-07 19:36:53 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-09-07 19:36:53 +0000 |
commit | 0ae6daf8342d8a07d33bf6677ce9a228530defac (patch) | |
tree | 11e06c8535944fa24ba9ee9f8fba8e6d42380a0b /sbin/dhclient-script | |
parent | 298e5e0ab913f32759805b5dc5ba204eb3795609 (diff) | |
download | pfsense-0ae6daf8342d8a07d33bf6677ce9a228530defac.zip pfsense-0ae6daf8342d8a07d33bf6677ce9a228530defac.tar.gz |
Use the new events mechanisms to dispatch events.
Diffstat (limited to 'sbin/dhclient-script')
-rwxr-xr-x | sbin/dhclient-script | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sbin/dhclient-script b/sbin/dhclient-script index 132946d..7f1862e 100755 --- a/sbin/dhclient-script +++ b/sbin/dhclient-script @@ -81,10 +81,7 @@ 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 + /usr/local/sbin/pfSctl -c "'interface reload $interface'" } @@ -186,7 +183,7 @@ add_new_resolv_conf() { echo $new_domain_name >/var/etc/defaultdomain.conf fi - echo $interface > /tmp/rc.newwanip + /usr/local/sbin/pfSctl -c "'interface reload $interface'" return 0 } |