mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
support solaris2.8: 'plumb' virtual interfaces before
configuring them up; don't use whoami as it does not exist on solaris2.8
This commit is contained in:
parent
52ea71106b
commit
413ce88331
1 changed files with 9 additions and 8 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue