make it work with Darwin (Mac OS X)
This commit is contained in:
parent
c115f7ed88
commit
8fde9568cc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue