network-manager: S45network-manager: don't use pidof -o option
authorPeter Korsgaard <peter@korsgaard.com>
Wed, 26 Nov 2014 15:16:13 +0000 (16:16 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 26 Nov 2014 15:16:13 +0000 (16:16 +0100)
The pidof -o option is only available in the Busybox applet if
CONFIG_FEATURE_PIDOF_OMIT is enabled, and it isn't really needed here as the
init script isn't called 'NetworkManager', so get rid of it.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/network-manager/S45network-manager

index 78808912bf19863a04fa9c64b7e3c96ec8c3edd5..5f32398e6bcaa0b0ce426458bfde39175cae69f0 100755 (executable)
@@ -8,7 +8,7 @@ NETWORKMANAGER_BIN=${sbindir}/NetworkManager
 
 [ -x $NETWORKMANAGER_BIN ] || exit 0
 
-PID=`pidof -o %PPID NetworkManager`
+PID=`pidof NetworkManager`
 case "$1" in
        start)
                echo -n "Starting NetworkManager ... "