-# --- Check it will work, or at least stands a fighting chance ---
-#
-# Having loads of different tunnel types doesn't help any.
-
-test -x $tripe -a -x $tripectl || exit 0
-
-case ${tunnel-`$tripe --tunnels | head -1`} in
- linux)
- case `uname -s` in
- Linux)
- if { test -f /proc/misc && grep -q tun /proc/misc; } ||
- modprobe -q tun; then
- : good
- else
- echo >&2 "$tripe needs the Linux TUN/TAP driver to run."
- exit 1
- fi
- if test -c /dev/net/tun; then
- : good
- else
- echo >&2 "$tripe needs /dev/net/tun, which is missing."
- exit 1
- fi
- ;;
- *)
- echo >&2 "CONFIGURATION ERROR"
- echo >&2 " $tripe is compiled to use a Linux tunnel device, but"
- echo >&2 " this system is `uname -s`"
- exit 1
- ;;
- esac
+## Check it will work, or at least stands a fighting chance.
+##
+## (Having loads of different tunnel types doesn't help any.)
+case ${tunnel-`$tripe --tunnels | head -1`},`uname -s` in
+
+ ## Linux TUN/TAP.
+ linux,Linux)
+ if { test -f /proc/misc && grep -q tun /proc/misc; } ||
+ modprobe -q tun; then
+ : good
+ else
+ echo >&2 "$tripe needs the Linux TUN/TAP driver to run."
+ exit 1
+ fi
+ if test -c /dev/net/tun; then
+ : good
+ else
+ echo >&2 "$tripe needs /dev/net/tun, which is missing."
+ exit 1
+ fi