HS-IVI2.0 release - spec changes
[adaptation/panda/system-adaptation-pandaboard.git] / common / xresources
1 #!/bin/sh
2
3 set -e
4
5 case "$1" in
6   start|stop|restart|reload|force-reload)
7   # Setting dpi to 72
8     if [ -x /usr/bin/xrdb ]; then
9       if [ -e ~/.Xresources ]; then
10                 /usr/bin/xrdb -load -nocpp ~/.Xresources
11       else
12         /usr/bin/xrdb -load -nocpp /etc/X11/Xresources
13       fi
14       touch /tmp/hibernation/xresources_ready
15     fi
16   ;;
17
18   status)
19     if [ -x /usr/bin/xrdb ]; then
20       /usr/bin/xrdb -query -nocpp
21     fi
22   ;;
23
24   *)
25     echo "Usage: /etc/init.d/xresource {start|stop|status|restart|reload|force-reload}"
26     exit 1
27     ;;
28 esac
29
30 exit 0