summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/linhes-live/etc/ulogin
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2010-10-23 18:17:40 (GMT)
committerJames Meyer <james.meyer@operamail.com>2010-10-23 18:19:39 (GMT)
commitadbcf19958300e9b6598990184c8815b945ba0ee (patch)
treef4283c850ac0ac202c17e78a637ee7ca8147621b /abs/core-testing/linhes-live/etc/ulogin
parent61a68250df10d29b624650948484898334ff22d0 (diff)
downloadlinhes_pkgbuild-adbcf19958300e9b6598990184c8815b945ba0ee.zip
linhes_pkgbuild-adbcf19958300e9b6598990184c8815b945ba0ee.tar.gz
linhes_pkgbuild-adbcf19958300e9b6598990184c8815b945ba0ee.tar.bz2
Removed old core and extra from repo. Renamed -testing to core/extra. This will setup the base for the testing branch.
Diffstat (limited to 'abs/core-testing/linhes-live/etc/ulogin')
-rwxr-xr-xabs/core-testing/linhes-live/etc/ulogin57
1 files changed, 0 insertions, 57 deletions
diff --git a/abs/core-testing/linhes-live/etc/ulogin b/abs/core-testing/linhes-live/etc/ulogin
deleted file mode 100755
index 085c431..0000000
--- a/abs/core-testing/linhes-live/etc/ulogin
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/bash
-
-# ulogin - A script for autologin of a selected user (and more)
-#-----------------------------------------------------------------
-# 2008.04.06
-
-user=$( cat /tmp/newuser 2>/dev/null )
-
-rm -f /tmp/newuser
-rm -f /tmp/xlogout
-
-if [ -n "${user}" ]; then
- login -f ${user}
-else
- # offer choice of user
- ulist="$( cat /etc/passwd | grep ':/home/.*sh$' )"
- echo -e "\nLogin a user or quit:"
- echo " 0 : root"
- echo " 1 : REBOOT"
- echo " 2 : HALT"
-
- i=2
- for entry in ${ulist}; do
- i=$(( ${i} + 1 ))
- user="$( echo ${entry} | cut -d':' -f1 )"
- users[${i}]=${user}
- printf "%4d : %s\n" ${i} ${user}
- done
- while true; do
- read -p "Enter a number from 0 to ${i} : " n
- if [ "${n}" = 0 ]; then
- login -f root
- elif [ "${n}" = 1 ]; then
- exec reboot
- elif [ "${n}" = 2 ]; then
- exec halt
- elif [ -n "$( echo "${n}" | grep "^[0-9]\+$" )" ] && \
- [ -n "${users[${n}]}" ]; then
- login -f ${users[${n}]}
- else
- echo " *** Invalid choice ..."
- continue
- fi
- break
- done
-fi
-
-if grep "r" /tmp/xlogout &>/dev/null; then
- reboot
-elif grep "h" /tmp/xlogout &>/dev/null; then
- halt
-fi
-
-# This file is only needed for shutting down
-rm -f /tmp/checkse
-
-# End