Sfoglia il codice sorgente

installer: check for network on source selection

the if condition is correct because test_network returns 1 on success

fixes #171
classabbyamp 2 anni fa
parent
commit
018343cd10
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      installer.sh.in

+ 3 - 1
installer.sh.in

@@ -1394,7 +1394,9 @@ menu_source() {
         "Local") src="local";;
         "Network") src="net";
             if [ -z "$NETWORK_DONE" ]; then
-                menu_network;
+                if test_network; then
+                    menu_network
+                fi
             fi;;
         *) return 1;;
     esac