WIP of mesh
This commit is contained in:
1 parent
ce9c9c1a8b
commit
327f4e40da
6 files changed
+215
-1
No files matched your search
+29
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
HOSTNAME=${1:-$HOSTNAME}
|
||||
|
||||
echo "Configuring AP to $HOSTNAME"
|
||||
|
||||
n=5
|
||||
while [ "$n" -gt 0 ]; do
|
||||
echo "Starting in $n..."
|
||||
sleep 1
|
||||
n=$(( n - 1 ))
|
||||
done
|
||||
|
||||
for i in firewall dnsmasq odhcpd; do
|
||||
if /etc/init.d/"$i" enabled; then
|
||||
/etc/init.d/"$i" disable
|
||||
/etc/init.d/"$i" stop
|
||||
fi
|
||||
done
|
||||
|
||||
uci set network.lan.proto='dhcp'
|
||||
uci delete network.wan
|
||||
uci delete network.wan6
|
||||
uci delete network.lan.ipaddr
|
||||
uci delete network.lan.netmask
|
||||
|
||||
mv /etc/config/firewall /etc/config/firewall.unused
|
||||
|
||||
reboot
|
||||
Reference in new issue
Block a user