support Irix; don't touch/remove /var/run/system_test_ifsetup multiple times

This commit is contained in:
Andreas Gustafsson
2000-06-12 22:37:36 +00:00
parent 2124020751
commit 2525055c90
2 changed files with 11 additions and 2 deletions

View File

@@ -57,12 +57,15 @@ case "$1" in
*-pc-bsdi4.*)
ifconfig lo0 add 10.53.0.$ns
;;
*-sgi-irix6.*)
/usr/etc/ifconfig lo0 alias 10.53.0.$ns
;;
*)
echo "Don't know how to set up interface. Giving up."
exit 1
esac
touch /var/run/system_test_ifsetup
done
touch /var/run/system_test_ifsetup
;;
'stop')
@@ -93,12 +96,16 @@ case "$1" in
*-pc-bsdi4.*)
ifconfig lo0 remove 10.53.0.$ns
;;
*-sgi-irix6.*)
ifconfig lo0 -alias 10.53.0.$ns
;;
*)
echo "Don't know how to destroy interface. Giving up."
exit 1
esac
rm -f /var/run/system_test_ifsetup
done
rm -f /var/run/system_test_ifsetup
;;
*)

View File

@@ -38,7 +38,9 @@ test -d $test || { echo "$0: $test: no such test" >&2; exit 1; }
echo "S:`date`"
echo "T:$test:1:A" >&2
# Irix does not have /var/run
test -f /var/run/system_test_ifsetup ||
test -f /etc/system_test_ifsetup ||
{ echo "I:Interfaces not set up. Not trying system tests." >&2;
exit 0;
}