Update mm-scripts.sh

This commit is contained in:
2023-04-22 17:55:28 -05:00
parent f78f4dab65
commit a97a41e498

View File

@@ -971,7 +971,20 @@ MMSETUP(){
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
echo
if [ "$(hostname)" != "${HOSTNAME}" ] || [ "$REPIP" != "$IPADDRESS" ] || [ "$REPSUB" != "$NEWUB" ] || [ "$REPGW" != "$GATEWAY" ] || [ "$REPDNS" != "$DNS" ]; then
if [ "$(hostname)" != "${HOSTNAME}" ]; then
echo "$(hostname) != ${HOSTNAME}"
NETCHNG=true
elif [ "$REPIP" != "$IPADDRESS" ]; then
echo "$REPIP != $IPADDRESS"
NETCHNG=true
elif [ "$REPSUB" != "$NEWUB" ]; then
echo "$REPSUB != $NEWUB"
NETCHNG=true
elif [ "$REPGW" != "$GATEWAY" ]; then
echo "$REPGW != $GATEWAY"
NETCHNG=true
elif [ "$REPDNS" != "$DNS" ]; then
echo "$REPDNS != $DNS"
NETCHNG=true
else
NETCHNG=false