update buildroot - work in progress development
[cmdllinux.git] / buildroot / _pkg_tmp / _pkgupd / xsprops
blobe7a66854fe81eb014ca4e5da2fc29bc17869f447
1 #! /bin/sh
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
10 exit 0
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"