♥BOX compatible
This commit is contained in:
parent
e20f719d1f
commit
6323455a1a
|
@ -158,14 +158,17 @@ else
|
||||||
#####################################################################
|
#####################################################################
|
||||||
myIP=$(hostname -I | awk '{print $1}' | head -n 1)
|
myIP=$(hostname -I | awk '{print $1}' | head -n 1)
|
||||||
isLAN=$(route -n |awk '$1 == "0.0.0.0" {print $2}' | grep -E "/(^127\.)|(^192\.168\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^::1$)|(^[fF][cCdD])/")
|
isLAN=$(route -n |awk '$1 == "0.0.0.0" {print $2}' | grep -E "/(^127\.)|(^192\.168\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^::1$)|(^[fF][cCdD])/")
|
||||||
|
isBOX=$(cat ~/.zen/♥BOX)
|
||||||
|
|
||||||
if [[ $isLAN ]]; then
|
if [[ $isLAN ]]; then
|
||||||
HNAME="http://g1billet.localhost"
|
HNAME="http://g1billet.localhost"
|
||||||
else
|
else
|
||||||
HNAME="http://$(hostname -I | awk '{print $1}' | head -n 1)"
|
HNAME="http://$(hostname -I | awk '{print $1}' | head -n 1)"
|
||||||
fi
|
fi
|
||||||
|
[[ $isBOX ]] && HNAME="http://$isBOX"
|
||||||
RNAME="$HNAME:33102"
|
RNAME="$HNAME:33102"
|
||||||
|
|
||||||
|
|
||||||
## AVAILABLE STYLES : CREATING SELECT
|
## AVAILABLE STYLES : CREATING SELECT
|
||||||
sytle=($(find ${MY_PATH}/${IMAGES}/* -type d | sort | rev | cut -d '/' -f 1 | rev))
|
sytle=($(find ${MY_PATH}/${IMAGES}/* -type d | sort | rev | cut -d '/' -f 1 | rev))
|
||||||
sytlenb=${#sytle[@]}
|
sytlenb=${#sytle[@]}
|
||||||
|
|
Loading…
Reference in New Issue