From 0ae6daf8342d8a07d33bf6677ce9a228530defac Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 7 Sep 2010 19:36:53 +0000 Subject: Use the new events mechanisms to dispatch events. --- sbin/dhclient-script | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sbin') 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 } -- cgit v1.1