blob: 4705b7fecea71d99c70e243cf6f39eafa3a5e344 (
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
31
|
suspend_dlm() {
while read -n 1 -t 1 SUSPEND_RESULT < /tmp/PmMessagesPort_out; do : ; done;
echo "S" > /tmp/PmMessagesPort_in if [ -f /tmp/PmMessagesPort_out ]; then
read -n 1 -t 10 SUSPEND_RESULT < /tmp/PmMessagesPort_out fi } resume_dlm() {
echo "R" > /tmp/PmMessagesPort_in } case "$1/$2" in pre/*) suspend_dlm ;; post/*) resume_dlm ;; esac
|