diff options
author | Ermal <eri@pfsense.org> | 2011-05-19 21:03:21 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-05-19 21:03:21 +0000 |
commit | b7d56b6412280d9dde10af0175dcc84eb75a85f2 (patch) | |
tree | fa3ae974d63e4a3c1315d71ba905100717fd6ece /etc | |
parent | 43a68abc9d16878cedac8ffda46fc12af5bb18ef (diff) | |
download | pfsense-b7d56b6412280d9dde10af0175dcc84eb75a85f2.zip pfsense-b7d56b6412280d9dde10af0175dcc84eb75a85f2.tar.gz |
Fixes #1508. When an interface is configured as static and an up event comes manually trigger rc.newwanip so gateway and other services get restarted properly.
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.linkup | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/rc.linkup b/etc/rc.linkup index 2e8bbcd..ea0fb90 100755 --- a/etc/rc.linkup +++ b/etc/rc.linkup @@ -45,6 +45,8 @@ function handle_argument_group($iface, $argument2) { $iface = get_real_interface($iface); interfaces_bring_up($iface); exec("/usr/sbin/arp -d -i {$iface} -a"); + if ($argument2 == "start" || $argument2 == "up") + send_event("interface newip {$iface}"); } else { switch ($argument2) { case "stop": |