blob: 17d773a224551e025cc7b0524d480c5b9c139659 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
if [ "$(id -u)" -ne 0 ]
then
# if a login tty clear the screen
[ "${TTY%%tty*}" = '/dev/' ] && clear
# check if login tty is 2
case "${TTY#/dev/tty}" in
2) exec startx > /dev/null 2>&1 ;;
*) false ;;
esac && exit
fi
|