repo.or.cz
/
hama_mce-eventclient.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update to v1.5
[hama_mce-eventclient.git]
/
99_hama_mce
blob
802057031771fe6ccd323ee383178dd53098769b
1
#!/bin/sh -e
2
3
# When the computer comes out of hibernate/suspend kill the old event client
4
# and start a new one.
5
6
EVENT_CLIENT
=/
usr
/
sbin
/
hama_mce
7
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}
&
14
fi
15
;;
16
esac