Print and check INTERNAL_NETMASK4.
This commit is contained in:
parent
aabe06ab2f
commit
447613dc6a
|
@ -21,10 +21,12 @@ echo "LOCAL_PORT = ${LOCAL_PORT}"
|
|||
echo "REMOTE_ADDR = ${REMOTE_ADDR}"
|
||||
echo "REMOTE_PORT = ${REMOTE_PORT}"
|
||||
echo "DEFAULT_GW = ${DEFAULT_GW}"
|
||||
echo "INTERNAL_NETMASK4 = ${INTERNAL_NETMASK4}"
|
||||
echo "INTERNAL_ADDR4 = ${INTERNAL_ADDR4}"
|
||||
echo "INTERNAL_DNS4 = ${INTERNAL_DNS4}"
|
||||
|
||||
echo ${INTERNAL_ADDR4} | grep '[0-9]' > /dev/null || exit 0
|
||||
echo ${INTERNAL_NETMASK4} | grep '[0-9]' > /dev/null || exit 0
|
||||
echo ${DEFAULT_GW} | grep '[0-9]' > /dev/null || exit 0
|
||||
|
||||
test -f /etc/resolv.conf.bak && cp /etc/resolv.conf.bak /etc/resolv.conf
|
||||
|
|
|
@ -21,9 +21,11 @@ echo "REMOTE_ADDR = ${REMOTE_ADDR}"
|
|||
echo "REMOTE_PORT = ${REMOTE_PORT}"
|
||||
echo "DEFAULT_GW = ${DEFAULT_GW}"
|
||||
echo "INTERNAL_ADDR4 = ${INTERNAL_ADDR4}"
|
||||
echo "INTERNAL_NETMASK4 = ${INTERNAL_NETMASK4}"
|
||||
echo "INTERNAL_DNS4 = ${INTERNAL_DNS4}"
|
||||
|
||||
echo ${INTERNAL_ADDR4} | grep '[0-9]' > /dev/null || exit 0
|
||||
echo ${INTERNAL_NETMASK4} | grep '[0-9]' > /dev/null || exit 0
|
||||
echo ${DEFAULT_GW} | grep '[0-9]' > /dev/null || exit 0
|
||||
|
||||
test -f /etc/resolv.conf.bak || cp /etc/resolv.conf /etc/resolv.conf.bak
|
||||
|
|
Loading…
Reference in New Issue