Rewrite Makefile. add clean command and DEBUG option
[hama_mce-eventclient.git] / 99_hama_mce
blob802057031771fe6ccd323ee383178dd53098769b
1 #!/bin/sh -e
3 # When the computer comes out of hibernate/suspend kill the old event client
4 # and start a new one.
6 EVENT_CLIENT=/usr/sbin/hama_mce
8 case "$1" in
9 resume|thaw)
10 if [ -x ${EVENT_CLIENT} ]; then
11 killall -s SIGINT ${EVENT_CLIENT} || true
12 sleep 2
13 ${EVENT_CLIENT} &
16 esac