From 413ce883319ed7b0df310f989aa86e0d87a91147 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Tue, 13 Jun 2000 01:02:31 +0000 Subject: [PATCH] support solaris2.8: 'plumb' virtual interfaces before configuring them up; don't use whoami as it does not exist on solaris2.8 --- bin/tests/system/ifconfig.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/bin/tests/system/ifconfig.sh b/bin/tests/system/ifconfig.sh index a6b1830358..f7231aa9f1 100644 --- a/bin/tests/system/ifconfig.sh +++ b/bin/tests/system/ifconfig.sh @@ -19,12 +19,6 @@ # Set up interface aliases for bind9 system tests. # -whoami=`whoami` -if [ $whoami != "root" ]; then - echo "Ifconfig setup must be run as root." - exit -fi - sys=`../../../config.guess` case "$1" in @@ -33,7 +27,11 @@ case "$1" in for ns in 1 2 3 4 5 do case "$sys" in - sparc-sun-solaris2.[6-7]) + *-sun-solaris2.[6-7]) + ifconfig lo0:$ns 10.53.0.$ns up + ;; + *-sun-solaris2.8) + ifconfig lo0:$ns plumb ifconfig lo0:$ns 10.53.0.$ns up ;; *-pc-linux-gnu) @@ -75,7 +73,10 @@ case "$1" in for ns in 5 4 3 2 1 do case "$sys" in - sparc-sun-solaris2.[6-8]) + *-sun-solaris2.[6-7]) + ifconfig lo0:$ns 10.53.0.$ns down + ;; + *-sun-solaris2.8]) ifconfig lo0:$ns 10.53.0.$ns down ;; *-pc-linux-gnu)