X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=wrt-setup-local;h=5e4b03896edbdd88f433a4f9efe2a6d4e2c16291;hp=b94d13ddbe40e74bd04eb0510ba57dc02b348b49;hb=e11bc15a6dd70c363602bdfe90171c2b72aca703;hpb=2230b58f86d24175583f2ce60d271f66d4f122ea diff --git a/wrt-setup-local b/wrt-setup-local index b94d13d..5e4b038 100755 --- a/wrt-setup-local +++ b/wrt-setup-local @@ -40,11 +40,6 @@ EOF -dnsmasq_restart=false -firewall_restart=false -dev2=false -test=false -libremanage_host=wrt2 secrets=false if [[ -e /root/router-secrets ]]; then @@ -58,6 +53,12 @@ fi : ${hostname:=wrt} +dnsmasq_restart=false +firewall_restart=false +dev2=false +test=false +client=false +libremanage_host=wrt2 lanip=1 while getopts hm:t: opt; do case $opt in @@ -317,6 +318,8 @@ if $client; then uset wireless.radio0.disabled false uset wireless.radio1.disabled true else + # defaults, just reseting in case client config ran + uset wireless.default_radio0.mode ap for x in 0 1; do uset wireless.default_radio$x.ssid "$ssid" uset wireless.default_radio$x.key $key @@ -696,46 +699,26 @@ EOF } firewall-cedit || firewall_restart=true -if ! uci get firewall.@zone[1].network | grep wg0 &>/dev/null; then - # cant mix cedit plus uci - echo | cedit /etc/config/firewall ||: - uci add_list firewall.@zone[1].network=wg0 - uci commit firewall - firewall-cedit ||: - firewall_restart=true -fi +# not using wireguard for now +# if ! uci get firewall.@zone[1].network | grep wg0 &>/dev/null; then +# # cant mix cedit plus uci +# echo | cedit /etc/config/firewall ||: +# uci add_list firewall.@zone[1].network=wg0 +# uci commit firewall +# firewall-cedit ||: +# firewall_restart=true +# fi v cedit /etc/hosts < 2.80. currently at 2.80. + # todo: download https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/dnsmasq_2.84~~test3-1_mipsel_24kc.ipk + # and install it. then we can turn off dnssec in systemd-resolved + # + # Also, reload of dnsmasq seems to break things, wifi + # clients were not getting internet connectivity. v /etc/init.d/dnsmasq restart fi