Move detection code to separate scripts for easy customization

master
bbruns 2010-12-18 21:54:51 +00:00
parent 70a2559ec3
commit bde43afb97
1 changed files with 2 additions and 6 deletions

View File

@ -106,16 +106,12 @@ fi
if [[ "$EXTIF" == "auto" ]]; then
if [ ! "$EXTIF_FIND" ]; then
EXTIF=$EXTIF_FIND
EXTIF=`$EXTIF_FIND`
display_c YELLOW "Found default interface at: ${BLUE}${EXTIF}${DEFAULT_COLOR}"
fi
if [[ "$EXTIP" == "auto" ]]; then
if [ ! "$EXTIP_FIND" ]; then
EXTIP=$(expr "`ifconfig ${EXTIF}`" : '.*inet addr:\([^ ]*\).*')
fi
EXTIP=`$EXTIP_FIND`
display_c YELLOW "Found default interface IP at: ${BLUE}${EXTIP}${DEFAULT_COLOR}"
fi