3 [ `id -u` != 0 ] && exit 0
5 tempfile
=`mktemp 2> /dev/null` || tempfile
=/tmp
/tmpfile$$
6 trap "rm -f $tempfile" 0 1 2 5 15
8 if [ ! -e /var
/lib
/instpkg
/xsession.props
]; then
9 ls /etc
/X11
/xinit.d
/etc
/X11
/xresources.d
> /var
/lib
/instpkg
/xsession.props
2> /dev
/null
13 ls /etc
/X11
/xinit.d
/etc
/X11
/xresources.d
> $tempfile 2> /dev
/null
15 if ! cmp $tempfile /var
/lib
/instpkg
/xsession.props
> /dev
/null
2>&1; then
16 mv $tempfile /var
/lib
/instpkg
/xsession.props
17 start-stop-daemon
-S -b -x /root
/manage
/msgx
"Environment has changed - re-login to activate changes"