Move detection code to separate scripts for easy customization
parent
70a2559ec3
commit
bde43afb97
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue