summaryrefslogtreecommitdiffstats
path: root/abs/core/gpm/gpm
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/gpm/gpm')
-rwxr-xr-xabs/core/gpm/gpm5
1 files changed, 3 insertions, 2 deletions
diff --git a/abs/core/gpm/gpm b/abs/core/gpm/gpm
index 4acc908..7b5213d 100755
--- a/abs/core/gpm/gpm
+++ b/abs/core/gpm/gpm
@@ -7,12 +7,13 @@ GPM_ARGS=
. /etc/rc.conf
. /etc/rc.d/functions
-PID=`pidof -o %PPID /usr/sbin/gpm`
+PID=$(pidof -o %PPID /usr/sbin/gpm)
case "$1" in
start)
stat_busy "Starting GPM Daemon"
[ -z "$PID" ] && /usr/sbin/gpm ${GPM_ARGS}
- if [ $? -gt 0 ]; then
+ PID=$(pidof -o %PPID /usr/sbin/gpm)
+ if [ -z "$PID" ]; then
stat_fail
else
add_daemon gpm