summaryrefslogtreecommitdiffstats
path: root/etc/rc.reboot
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com>2009-05-15 21:15:31 -0400
committerScott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com>2009-05-15 21:15:31 -0400
commit4b68ec30abb77d5aa95dad1218d8a2e6da01af10 (patch)
treec81a55ada6917229e45ac91743b71c79d585937f /etc/rc.reboot
parent2eeb1781ab69180c2e5667c0f483b9c885b66db5 (diff)
downloadpfsense-4b68ec30abb77d5aa95dad1218d8a2e6da01af10.zip
pfsense-4b68ec30abb77d5aa95dad1218d8a2e6da01af10.tar.gz
Down interfaces before rebooting. Hopefully giving enough time
for the master interface to send a pfsync() notification to its peers. Open and Free both down the interface before rebooting.
Diffstat (limited to 'etc/rc.reboot')
-rwxr-xr-xetc/rc.reboot6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/rc.reboot b/etc/rc.reboot
index 721c742..dbb8327 100755
--- a/etc/rc.reboot
+++ b/etc/rc.reboot
@@ -23,5 +23,11 @@ fi
sleep 1
+echo -n "Downing interfaces: "
+for INTERFACE in `/sbin/ifconfig -l`; do
+ echo -n $INTERFACE
+ /sbin/ifconfig $INTERFACE down
+done
+
/sbin/shutdown -r now
OpenPOWER on IntegriCloud