summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/sbin/pfSsh.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/sbin/pfSsh.php b/usr/local/sbin/pfSsh.php
index 3785380..565aa4d 100755
--- a/usr/local/sbin/pfSsh.php
+++ b/usr/local/sbin/pfSsh.php
@@ -56,7 +56,10 @@ echo "\$config['interfaces']['wan']['ipaddr'] = \"192.168.100.1\";\n";
echo "\$config['interfaces']['wan']['subnet'] = \"24\";\n";
echo "\n/* to save out the new configuration (config.xml) */\n";
-echo "write_config();";
+echo "write_config();\n";
+
+echo "\n/* to reboot the system after saving */\n";
+echo "system_reboot_sync();";
while($shell_active == true) {
echo "\n\npfSense shell> ";
OpenPOWER on IntegriCloud