Fix invoke-rc.d a little.
authorRoy Marples <roy@marples.name>
Thu, 4 Nov 2010 14:41:51 +0000 (14:41 +0000)
committerRoy Marples <roy@marples.name>
Thu, 4 Nov 2010 14:41:51 +0000 (14:41 +0000)
configure

index 28f43a75dd583bc0d1fd2a0a4c6d90004e6c00d8..8dcb508f85f59137bffae2e1ae02cd24b4eec17b 100755 (executable)
--- a/configure
+++ b/configure
@@ -135,7 +135,7 @@ fi
 if [ -z "$RESTARTCMD" ]; then
        printf "Checking for invoke-rc.d ... "
        if [ -x /usr/sbin/invoke-rc.d ]; then
 if [ -z "$RESTARTCMD" ]; then
        printf "Checking for invoke-rc.d ... "
        if [ -x /usr/sbin/invoke-rc.d ]; then
-               RESTARTCMD="/usr/sbin/invoke-rc.d --query --quiet \1 restart || [ \$\$\? = 104 ] \&\& /usr/sbin/invoke-rc.d \1 restart"
+               RESTARTCMD="/usr/sbin/invoke-rc.d --quiet \1 status >/dev/null 2>\&1 \&\& /usr/sbin/invoke-rc.d \1 restart"
                echo "yes"
        else
                echo "no"
                echo "yes"
        else
                echo "no"