Fix invoke-rc.d a little.
[openresolv] / configure
index 70ec104d12d1dd80a64cfb193c1fcda495103df5..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
-               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"
@@ -154,7 +154,7 @@ if [ -z "$RESTARTCMD" ]; then
        for x in /etc/init.d/rc.d /etc/rc.d /etc/init.d; do
                printf "Checking for $x ... "
                if [ -d $x ]; then
-                       RESTARTCMD="$x/\1 status >/dev/null 2>&1 \&\& $x/\1 restart"
+                       RESTARTCMD="$x/\1 status >/dev/null 2>\&1 \&\& $x/\1 restart"
                        echo "yes"
                        break
                else