make it work with Darwin (Mac OS X)

This commit is contained in:
Thomas Bernard 2015-09-23 18:20:13 +02:00
parent c115f7ed88
commit 8fde9568cc
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
OS=`uname -s` OS=`uname -s`
case $OS in case $OS in
OpenBSD) OpenBSD | Darwin)
NS="`which netstat`" || exit 1 NS="`which netstat`" || exit 1
IFCONFIG="`which ifconfig`" || exit 1 IFCONFIG="`which ifconfig`" || exit 1
EXTIF="`$NS -r -f inet | grep 'default' | awk '{ print $NF }' `" || exit 1 EXTIF="`$NS -r -f inet | grep 'default' | awk '{ print $NF }' `" || exit 1