home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
tusportal.tus.k12.pa.us
/
tusportal.tus.k12.pa.us.tar
/
tusportal.tus.k12.pa.us
/
Wyse
/
latest-image.raw
/
0.img
/
usr
/
bin
/
thinclient-session
< prev
next >
Wrap
Text File
|
2012-08-08
|
790b
|
44 lines
#!/bin/bash
#set -x
#exec &> /tmp/thinclient-session_$$.log
function runScripts
{
find $1 | while read script; do
sh $script >/dev/null 2>&1
done;
}
USERLEVEL=`userlevel`
if test `id -u` = 0; then
# root always gets 'high' level
USERLEVEL="high"
fi
# run the 'reset' scripts no matter what
runScripts /etc/userlevel/reset.d
case "$USERLEVEL" in
high)
runScripts /etc/userlevel/high.d
;;
medium)
runScripts /etc/userlevel/medium.d
;;
*)
runScripts /etc/userlevel/low.d
;;
esac
eval `gnome-keyring-daemon`
export GNOME_KEYRING_SOCKET
export GNOME_KEYRING_PID
thinclient-keyring-unlock &
#sudo /usr/bin/run-admin killall metacity
#/usr/bin/metacity &
gnome-session
runScripts /etc/userlevel/cleanup.d