summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/g15daemon/files/g15daemon-1.9.5.3.initd')
-rw-r--r--app-misc/g15daemon/files/g15daemon-1.9.5.3.initd11
1 files changed, 7 insertions, 4 deletions
diff --git a/app-misc/g15daemon/files/g15daemon-1.9.5.3.initd b/app-misc/g15daemon/files/g15daemon-1.9.5.3.initd
index 7976cff..d9907ed 100644
--- a/app-misc/g15daemon/files/g15daemon-1.9.5.3.initd
+++ b/app-misc/g15daemon/files/g15daemon-1.9.5.3.initd
@@ -25,9 +25,9 @@ start_pre() {
/sbin/modprobe uinput > /dev/null 2> /dev/null
fi
fi
-
- local SWITCHKEY=""
- [ "${CLIENT_SWITCH_L1}" = "yes" ] && command_args="--switch"
+ if [ "${CLIENT_SWITCH_MR}" = "yes" ]; then
+ command_args="-s"
+ fi
}
stop() {
@@ -36,6 +36,9 @@ stop() {
if [ $BACKLIGHT_OFF = "yes" ]; then
KILLOPT="-K"
fi
- start-stop-daemon -R 5 --exec ${command} -- ${KILLOPT}
+ local PID=$(cat $pidfile)
+ while [ -e "/proc/$PID" ]; do
+ start-stop-daemon --exec ${command} -- ${KILLOPT}
+ done
eend $?
}