blob: 3f7d0fd437b654dd1194b3b4df1b3f541fc1f101 (
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
|
#!/bin/sh
#
# 99oss4-pm: Restart sound on suspend/resumt
case "$1" in
hibernate|suspend)
# We need to force unload in order
# to quit applications that are using oss4..
if which invoke-rc.d >/dev/null 2>&1; then
invoke-rc.d oss4-base force-unload
else
/etc/init.d/oss4-base force-unload
fi
;;
thaw|resume)
if which invoke-rc.d >/dev/null 2>&1; then
invoke-rc.d oss4-base start
else
/etc/init.d/oss4-base start
fi
;;
*) exit $NA
;;
esac
|