diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-05-21 21:17:04 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-05-21 21:17:04 -0400 |
commit | 40a606961a07dde916f2c4da00321b3452035d53 (patch) | |
tree | 26f7e4567a1869207daf7dbfdfe996db02d453e2 /etc/phpshellsessions | |
parent | 8022e257c24103c4b46f194c059c52555e97aaba (diff) | |
download | pfsense-40a606961a07dde916f2c4da00321b3452035d53.zip pfsense-40a606961a07dde916f2c4da00321b3452035d53.tar.gz |
Adding enablesshd pfSsh.php script
Diffstat (limited to 'etc/phpshellsessions')
-rw-r--r-- | etc/phpshellsessions/enablesshd | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/etc/phpshellsessions/enablesshd b/etc/phpshellsessions/enablesshd new file mode 100644 index 0000000..c300595 --- /dev/null +++ b/etc/phpshellsessions/enablesshd @@ -0,0 +1,16 @@ +global $config; +echo "Starting enablesshd..."; +require("config.inc"); +echo "."; +require("filter.inc"); +echo "."; +require("shaper.inc"); +echo "."; +$config = parse_config(true); +echo "."; +$config['system']['enablesshd'] = true; +echo "."; +write_config("pfSsh.php enabled sshd"); +echo "\nEnabling SSHD, please wait..."; +exec("/etc/sshd"); +echo "\n\n";
\ No newline at end of file |