mirror of https://github.com/aredn/aredn.git
16 lines
342 B
Plaintext
16 lines
342 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
DHCPLANSECTION=`uci show dhcp|grep interface=lan|sed "s/dhcp.\@dhcp\[\(.*\)\].interface=lan/\1/"`
|
||
|
|
||
|
logger "Reseting password to factory default"
|
||
|
/usr/local/bin/setpasswd hsmm
|
||
|
|
||
|
logger "Enable DHCP on lan interface"
|
||
|
uci set dhcp.@dhcp\[$DHCPLANSECTION\].ignore=0
|
||
|
uci -q commit
|
||
|
|
||
|
logger "Restart dnsmasq"
|
||
|
/etc/init.d/dnsmasq restart
|
||
|
|
||
|
|