summaryrefslogtreecommitdiffstats
path: root/etc/rc.initial.toggle_sshd
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-09-07 02:06:57 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-09-07 02:06:57 +0000
commit44f1247ec621dd2178fee3216d4c8737383ef5b9 (patch)
tree129033033a7ed53f9d5189309a0d111bb79e9032 /etc/rc.initial.toggle_sshd
parent12294e724d6675065b69020ee7929c280fd94804 (diff)
downloadpfsense-44f1247ec621dd2178fee3216d4c8737383ef5b9.zip
pfsense-44f1247ec621dd2178fee3216d4c8737383ef5b9.tar.gz
Cleanup output text
Diffstat (limited to 'etc/rc.initial.toggle_sshd')
-rw-r--r--etc/rc.initial.toggle_sshd10
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";
}
}
OpenPOWER on IntegriCloud