From 3ffb835524f2337620204c0cbd90dcbd7381fd7a Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Thu, 9 Jul 2015 09:04:06 +0200 Subject: [PATCH] rc.initial: yes, I'm that lazy --- src/etc/rc.initial | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/etc/rc.initial b/src/etc/rc.initial index 051c799ac..236f59fcd 100755 --- a/src/etc/rc.initial +++ b/src/etc/rc.initial @@ -48,12 +48,12 @@ echo " ${option99}" fi echo -read -p "Enter an option: " opmode +read -p "Enter an option: " OPCODE echo # see what the user has chosen -case ${opmode} in -0) +case ${OPCODE} in +0|exit|logout|quit) exit ;; 1) @@ -99,6 +99,7 @@ case ${opmode} in /usr/local/etc/rc.installer ;; *) + /bin/sh -c "${OPCODE}" ;; esac