summaryrefslogtreecommitdiff
path: root/meta/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm')
-rwxr-xr-xmeta/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm5
1 files changed, 1 insertions, 4 deletions
diff --git a/meta/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm b/meta/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm
index a56edaa15..6a04efe86 100755
--- a/meta/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm
+++ b/meta/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm
@@ -1,10 +1,7 @@
#!/bin/sh
killproc() { # kill the named process(es)
- pid=`/bin/ps -e x |
- /bin/grep $1 |
- /bin/grep -v grep |
- /bin/sed -e 's/^ *//' -e 's/ .*//'`
+ pid=`/bin/pidof $1`
[ "$pid" != "" ] && kill $pid
}