summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-05-19 21:03:21 +0000
committerErmal <eri@pfsense.org>2011-05-19 21:03:21 +0000
commitb7d56b6412280d9dde10af0175dcc84eb75a85f2 (patch)
treefa3ae974d63e4a3c1315d71ba905100717fd6ece
parent43a68abc9d16878cedac8ffda46fc12af5bb18ef (diff)
downloadpfsense-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.
-rwxr-xr-xetc/rc.linkup2
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":
OpenPOWER on IntegriCloud