summaryrefslogtreecommitdiffstats
path: root/etc/rc.initial
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2004-11-21 22:12:49 +0000
committerScott Ullrich <sullrich@pfsense.org>2004-11-21 22:12:49 +0000
commitdebddb2445e29b403b1c3e29499ba4b07d1e1a65 (patch)
treef19f263b2daf4804f238bb24d5495ac4a07999c4 /etc/rc.initial
parent573f86c23da6b54013d75c71a1637f33526f4272 (diff)
downloadpfsense-debddb2445e29b403b1c3e29499ba4b07d1e1a65.zip
pfsense-debddb2445e29b403b1c3e29499ba4b07d1e1a65.tar.gz
Add logout feature to console (for ssh sessions)
Diffstat (limited to 'etc/rc.initial')
-rwxr-xr-xetc/rc.initial4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/rc.initial b/etc/rc.initial
index fc6d5b5..352a32a 100755
--- a/etc/rc.initial
+++ b/etc/rc.initial
@@ -35,6 +35,7 @@ while : ; do
# display a cheap menu
echo "pfSense console setup"
echo "**********************"
+echo "0) Logout if accessing via SSH"
echo "1) Interfaces: assign network ports"
echo "2) Set up LAN IP address"
echo "3) Reset webGUI password"
@@ -49,6 +50,9 @@ read -p "Enter a number: " opmode
# see what the user has chosen
case ${opmode} in
+0)
+ exit && exit && logout
+ ;;
1)
/etc/rc.initial.setports
;;
OpenPOWER on IntegriCloud