Moved handler for root login to profile script.
parent
28ef4a44b7
commit
37a09937db
@ -1,5 +1,9 @@
|
|||||||
|
|
||||||
if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
|
if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
|
||||||
|
# Drop root to console
|
||||||
|
if [[ $EUID -eq 0 ]]; then
|
||||||
|
${SHELL}
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
cdm
|
cdm
|
||||||
exit
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue