From 7e895c30b84d1a138b2aa18c2ab5c89d5aca6866 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 15 Dec 2020 23:01:30 +0100 Subject: [PATCH] fix --- openwrt/viwib-2-configure.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openwrt/viwib-2-configure.sh b/openwrt/viwib-2-configure.sh index c1d66da..3649edb 100755 --- a/openwrt/viwib-2-configure.sh +++ b/openwrt/viwib-2-configure.sh @@ -73,13 +73,15 @@ uci set dhcp.@dnsmasq[0].noresolv='1' # Fix DNS: make the OS use the locally provided DNS servers # otherwise the VPN tunnel cannot be established -dhcp.@dnsmasq[0].localuse='0' +uci set dhcp.@dnsmasq[0].localuse='0' # DNS upstream over VPN gives DNS64 uci delete dhcp.@dnsmasq[0].server uci add_list dhcp.@dnsmasq[0].server='2a0a:e5c0:0:a::a' uci add_list dhcp.@dnsmasq[0].server='2a0a:e5c0:2:a::a' +uci set system.@system[0].hostname="${viwib_hostname}" + # wifi ip address # uci set network.wifi=interface # uci set network.wifi.proto='static' @@ -154,8 +156,6 @@ uci set network.@wireguard_wg0[0].endpoint_host="${vpn_endpoint_host}" uci set network.@wireguard_wg0[0].endpoint_port='51820' uci set network.@wireguard_wg0[0].route_allowed_ips='1' -uci set system.@system[0].hostname="${viwib_hostname}" - # Firewall configuration if ! uci show firewall | grep "name='Allow-SSH'"; then uci add firewall rule