summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-05-03 03:49:36 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-05-03 03:49:36 +0000
commitc64bccc058aab5f76f4306fe970999f87a9e3e88 (patch)
treec258ac59b0d83b5c5ab5f6d1f276b50c3d25fc5a /usr/local
parent73b2c799375a9b06ec62c415bd564b088f38fd40 (diff)
downloadpfsense-c64bccc058aab5f76f4306fe970999f87a9e3e88.zip
pfsense-c64bccc058aab5f76f4306fe970999f87a9e3e88.tar.gz
Show the reboot command as well for php pfSense shell Sponsored-by: Bluegrass.net
Diffstat (limited to 'usr/local')
-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