return to main menu on wireless cancel

This commit is contained in:
Tobias Powalowski 2022-12-10 22:33:53 +01:00
parent 86eef369c6
commit 3e37fbc996

View file

@ -105,7 +105,7 @@ donetwork() {
DIALOG --inputbox "Enter your network profile name:" 7 40 "${INTERFACE}-${CONNECTION}" 2>"${ANSWER}" || return 1 DIALOG --inputbox "Enter your network profile name:" 7 40 "${INTERFACE}-${CONNECTION}" 2>"${ANSWER}" || return 1
NETWORK_PROFILE=/etc/systemd/network/$(cat "${ANSWER}").network NETWORK_PROFILE=/etc/systemd/network/$(cat "${ANSWER}").network
# wifi setup first # wifi setup first
do_wireless do_wireless || return 1
# dhcp switch # dhcp switch
IP="" IP=""
DIALOG --yesno "Do you want to use DHCP?" 5 40 DIALOG --yesno "Do you want to use DHCP?" 5 40