Move detection code to separate scripts for easy customization
parent
70a2559ec3
commit
bde43afb97
|
@ -106,16 +106,12 @@ fi
|
||||||
|
|
||||||
|
|
||||||
if [[ "$EXTIF" == "auto" ]]; then
|
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}"
|
display_c YELLOW "Found default interface at: ${BLUE}${EXTIF}${DEFAULT_COLOR}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$EXTIP" == "auto" ]]; then
|
if [[ "$EXTIP" == "auto" ]]; then
|
||||||
if [ ! "$EXTIP_FIND" ]; then
|
EXTIP=`$EXTIP_FIND`
|
||||||
EXTIP=$(expr "`ifconfig ${EXTIF}`" : '.*inet addr:\([^ ]*\).*')
|
|
||||||
fi
|
|
||||||
display_c YELLOW "Found default interface IP at: ${BLUE}${EXTIP}${DEFAULT_COLOR}"
|
display_c YELLOW "Found default interface IP at: ${BLUE}${EXTIP}${DEFAULT_COLOR}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue