diff --git a/openrouter/src/web/js/login.js b/openrouter/src/web/js/login.js index f5f805b..e919f12 100644 --- a/openrouter/src/web/js/login.js +++ b/openrouter/src/web/js/login.js @@ -44,6 +44,7 @@ const login = async (username, password) => { await get_user_data() loginusername.value = "" loginpassword.value = "" + settingssection.classList.add('active') } } diff --git a/rootfs/etc/dnsmasq.conf b/rootfs/etc/dnsmasq.conf index 35c3e6c..5bc99ac 100644 --- a/rootfs/etc/dnsmasq.conf +++ b/rootfs/etc/dnsmasq.conf @@ -1,5 +1,6 @@ interface=eth1 -dhcp-range=192.168.100.2,192.168.100.100,12h +dhcp-range=interface:eth0,192.168.100.2,192.168.100.100,12h +dhcp-range=interface:wlan0,192.168.101.2,192.168.101.100,12h resolv-file=/etc/dnsmasq.conf.d/resolv.conf addn-hosts=/etc/dnsmasq.conf.d/hosts cache-size=10000 diff --git a/rootfs/etc/hostapd/hostapd.conf b/rootfs/etc/hostapd/hostapd.conf new file mode 100644 index 0000000..dd9cde9 --- /dev/null +++ b/rootfs/etc/hostapd/hostapd.conf @@ -0,0 +1,14 @@ +interface=wlan0 +driver=nl80211 +ssid=OpenRouterWIFI +hw_mode=g +channel=6 +wmm_enabled=0 +macaddr_acl=0 +auth_algs=1 +ignore_broadcast_ssid=0 +wpa=2 +wpa_passphrase=OpenRouterPassword +wpa_key_mgmt=WPA-PSK +wpa_pairwise=TKIP +rsn_pairwise=CCMP diff --git a/rootfs/etc/init.d/dnsmasq b/rootfs/etc/init.d/dnsmasq index c7fd6dd..d26a3f4 100644 --- a/rootfs/etc/init.d/dnsmasq +++ b/rootfs/etc/init.d/dnsmasq @@ -8,6 +8,7 @@ case "$1" in printf "Starting dnsmasq " sleep 1 /usr/bin/dnsmasq --user=dnsmasq --pid-file=/var/run/dnsmasq.pid + echo "nameserver 0.0.0.0" > /etc/resolv.conf if [[ "$?" == "0" ]]; then echo "nameserver 0.0.0.0" > /etc/resolv.conf printf "[$Green OK $Color_off]\n" diff --git a/rootfs/etc/network/interfaces b/rootfs/etc/network/interfaces index 877005f..c0b915c 100644 --- a/rootfs/etc/network/interfaces +++ b/rootfs/etc/network/interfaces @@ -1,8 +1,19 @@ +# Loopback interface auto lo iface lo inet loopback + +# eth0 - connected to the internet auto eth0 iface eth0 inet dhcp + +# eth1 - internal network auto eth1 iface eth1 inet static address 192.168.100.1 netmask 255.255.255.0 + +# wlan0 - internal wireles network +auto wlan0 +iface wlan0 inet static + address 192.168.101.1 + netmask 255.255.255.0