summaryrefslogtreecommitdiffstats
path: root/etc/rc.initial
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-08-30 04:24:23 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-08-30 04:24:23 +0000
commit2a5a9c6af4673693ee36f3898e4ba363171ebaef (patch)
treee8dab81b67536e7cd0dd538709c722c368af3a0f /etc/rc.initial
parentfa58f9a07c8386fa9071e313669d54c391021736 (diff)
downloadpfsense-2a5a9c6af4673693ee36f3898e4ba363171ebaef.zip
pfsense-2a5a9c6af4673693ee36f3898e4ba363171ebaef.tar.gz
* Output if SSH is enabled
* Kill SSH server but leave open ssh sessions
Diffstat (limited to 'etc/rc.initial')
-rwxr-xr-xetc/rc.initial8
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/rc.initial b/etc/rc.initial
index 1c92821..fafa70c 100755
--- a/etc/rc.initial
+++ b/etc/rc.initial
@@ -73,7 +73,13 @@ echo "10) Filter Logs"
echo "11) Restart webConfigurator"
echo "12) pfSense PHP shell"
echo "13) Upgrade from console"
-echo "14) Enable/Disable SSHD"
+SSHD=`netstat -an | grep "*.22" | wc -l`
+if [ "$SSHD" -gt 0 ]; then
+ echo "14) Disable Secure Sheel (sshd)";
+else
+ echo "14) Enable Secure Sheel (sshd)";
+fi
+
for i in /var/db/pfi/capable_*; do
if [ -f $i -a ! -L /cf/conf ]; then
echo "98) Move configuration file to removable device"
OpenPOWER on IntegriCloud