Return on cancel

This commit is contained in:
Bob Mottram 2016-10-22 22:16:21 +01:00
parent ae4f366299
commit dc4e2405db
1 changed files with 3 additions and 0 deletions

View File

@ -1271,6 +1271,7 @@ function set_dynamic_IP {
case $sel in
0) revert_to_dynamic=1
;;
1) return;;
esac
if [ $revert_to_dynamic ]; then
@ -1315,6 +1316,7 @@ Enter a static local IP address for this system.\n\nIt will typically be ${IPv4_
return
fi
;;
1) return;;
esac
# get the gateway
@ -1330,6 +1332,7 @@ Enter a static local IP address for this system.\n\nIt will typically be ${IPv4_
return
fi
;;
1) return;;
esac
if [[ "$NEW_STATIC_GATEWAY" == *"."* && "$NEW_STATIC_IP" == *"."* ]]; then