From c64bccc058aab5f76f4306fe970999f87a9e3e88 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 3 May 2007 03:49:36 +0000 Subject: Show the reboot command as well for php pfSense shell Sponsored-by: Bluegrass.net --- usr/local/sbin/pfSsh.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr/local/sbin/pfSsh.php') 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> "; -- cgit v1.1