diff --git a/files/usr/local/bin/node-setup b/files/usr/local/bin/node-setup index 98d9cf2c..a8214fc2 100755 --- a/files/usr/local/bin/node-setup +++ b/files/usr/local/bin/node-setup @@ -503,13 +503,18 @@ if(wifi_useschains()){ $cmd .= "uci set wireless.\@wifi-device[0].rxantenna=$cfg{wifi_rxant} >/dev/null 2>&1;"; $cmd .= "uci set wireless.\@wifi-device[0].txantenna=$cfg{wifi_txant} >/dev/null 2>&1;"; } + +# Setup node lan dhcp +if ( $cfg{lan_dhcp_noroute} ) { + $cmd .= "uci add_list dhcp.\@dhcp[0].dhcp_option=3 >/dev/null 2>&1;" +} + +# finish up + $cmd .= "uci -q commit;"; system $cmd; - -# finish up - unless($auto) { print "configuration complete.\n"; diff --git a/files/www/cgi-bin/setup b/files/www/cgi-bin/setup index 2fecadb1..06c14ea4 100755 --- a/files/www/cgi-bin/setup +++ b/files/www/cgi-bin/setup @@ -682,6 +682,15 @@ if($dmz_mode) print "