diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2004-11-21 22:12:49 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2004-11-21 22:12:49 +0000 |
commit | debddb2445e29b403b1c3e29499ba4b07d1e1a65 (patch) | |
tree | f19f263b2daf4804f238bb24d5495ac4a07999c4 | |
parent | 573f86c23da6b54013d75c71a1637f33526f4272 (diff) | |
download | pfsense-debddb2445e29b403b1c3e29499ba4b07d1e1a65.zip pfsense-debddb2445e29b403b1c3e29499ba4b07d1e1a65.tar.gz |
Add logout feature to console (for ssh sessions)
-rwxr-xr-x | etc/rc.initial | 4 |
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 ;; |