/etc/pm/sleep.d/30oss4-pm is in oss4-base 4.2-build2010-5ubuntu2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | #!/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
|