summaryrefslogtreecommitdiff
path: root/arm-common/xresources
blob: 4402c02f97f170e58e11e3fcee9e7591abb15066 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh

set -e

case "$1" in
  start|stop|restart|reload|force-reload)
  # Setting dpi to 72
    if [ -x /usr/bin/xrdb ]; then
      if [ -e ~/.Xresources ]; then
		/usr/bin/xrdb -load -nocpp ~/.Xresources
      else
        /usr/bin/xrdb -load -nocpp /usr/etc/X11/Xresources
      fi
	  touch /tmp/hibernation/xresources_ready
    fi
  ;;

  status)
    if [ -x /usr/bin/xrdb ]; then
      /usr/bin/xrdb -query -nocpp
    fi
  ;;

  *)
    echo "Usage: /etc/init.d/xresource {start|stop|status|restart|reload|force-reload}"
    exit 1
    ;;
esac

exit 0