Fix critical issue with exec, fixed SHLVL

pull/3/head
Ghost1227 15 years ago
parent 0679782c51
commit 8748210411

@ -182,6 +182,8 @@ mainmenu() {
# Set wm_bin
clear
if [[ ${wm} -eq ${console} ]]; then
#Fix SHLVL
export SHLVL=$((SHLVL-1))
exec ${SHELL}
elif [[ ${wm} -eq ${halt} ]]; then
shutdownmenu

@ -3,5 +3,6 @@ if [[ -z "$DISPLAY" && -z "$SSH_TTY" && $(tty) = /dev/tty* ]]; then
if [[ $EUID -eq 0 ]]; then
exec ${SHELL}
fi
exec cdm
cdm
exit 0
fi

Loading…
Cancel
Save