base-files: rework config generation logic
[openwrt/openwrt.git] / package / base-files / files / bin / board_detect
index ee04b9e64dc7332bb7d1d19b906ccab47b625f61..beb7f4e6596584d0a423a88a168ec264b4b44008 100755 (executable)
@@ -8,7 +8,5 @@
 }
 
 [ -f "/etc/board.json" ] || return 1
 }
 
 [ -f "/etc/board.json" ] || return 1
-[ -f "/etc/config/network" ] || {
-       touch /etc/config/network
-       /bin/config_generate
-}
+
+/bin/config_generate