]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Rejected cygwin in ifconfig.sh
authorFrancis Dupont <fdupont@isc.org>
Thu, 8 Sep 2016 10:58:44 +0000 (12:58 +0200)
committerFrancis Dupont <fdupont@isc.org>
Thu, 8 Sep 2016 10:58:44 +0000 (12:58 +0200)
bin/tests/system/ifconfig.sh

index f4f61a1033a1328cc9f7882926462270580e36fe..0ca3fce283519183e8b3690654792f14a972889c 100644 (file)
@@ -130,6 +130,10 @@ case "$1" in
                        ifconfig lo0 alias 10.53.0.$ns
                        ifconfig lo0 inet6 fd92:7065:b8e:ffff::$ns alias
                        ;;
+                   *-cygwin*)
+                       echo "Please run ifconfig.bat as Administrator."
+                       exit 1
+                       ;;
                    *)
                        echo "Don't know how to set up interface.  Giving up."
                        exit 1
@@ -211,6 +215,10 @@ case "$1" in
                        ifconfig lo0 -alias 10.53.0.$ns
                        ifconfig lo0 inet6 fd92:7065:b8e:ffff::$ns delete
                        ;;
+                   *-cygwin*)
+                       echo "Please run ifconfig.bat as Administrator."
+                       exit 1
+                       ;;
                    *)
                        echo "Don't know how to destroy interface.  Giving up."
                        exit 1