diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-09-07 02:06:57 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-09-07 02:06:57 +0000 |
commit | 44f1247ec621dd2178fee3216d4c8737383ef5b9 (patch) | |
tree | 129033033a7ed53f9d5189309a0d111bb79e9032 /etc/rc.initial.toggle_sshd | |
parent | 12294e724d6675065b69020ee7929c280fd94804 (diff) | |
download | pfsense-44f1247ec621dd2178fee3216d4c8737383ef5b9.zip pfsense-44f1247ec621dd2178fee3216d4c8737383ef5b9.tar.gz |
Cleanup output text
Diffstat (limited to 'etc/rc.initial.toggle_sshd')
-rw-r--r-- | etc/rc.initial.toggle_sshd | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/etc/rc.initial.toggle_sshd b/etc/rc.initial.toggle_sshd index d9d353c..bf60c19 100644 --- a/etc/rc.initial.toggle_sshd +++ b/etc/rc.initial.toggle_sshd @@ -41,9 +41,10 @@ if (isset($config['system']['enablesshd'])) { unset($config['system']['enablesshd']); echo "\nWriting configuration..."; write_config(); - echo "\n\nDisabling SSHD..."; + echo " done.\n"; + echo "\nDisabling SSHD..."; exec("/etc/sshd"); - echo "\n"; + echo " done.\n"; exec("ps awux | grep '/usr/sbin/sshd' | grep -v grep | awk '{print $2}' | xargs kill"); } @@ -54,9 +55,10 @@ if (isset($config['system']['enablesshd'])) { $config['system']['enablesshd'] = true; echo "\nWriting configuration..."; write_config(); - echo "\n\nEnabling SSHD..."; + echo " done.\n"; + echo "\nEnabling SSHD..."; exec("/etc/sshd"); - echo "\n"; + echo " done.\n\n"; } } |