fix the pre-existing issue of DHCP_SERVER not working

pull/4/head
Rick Farina (Zero_Chaos) 2019-12-13 14:51:41 -05:00
parent bff3daee88
commit ca54f29c7f
No known key found for this signature in database
GPG Key ID: A29433C0AA431DDC
1 changed files with 7 additions and 4 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
function show_usage() { function show_usage() {
echo "Usage: $0 [DHCP_CLIENT|DHCP_SERVER]" echo "Usage: $0 [DHCP_CLIENT|DHCP_SERVER|AUTO]"
echo "" echo ""
} }
@ -11,16 +11,19 @@ function configure_client() {
} }
function configure_server() { function configure_server() {
uci set network.lan.proto='none' uci set network.lan.proto='static'
uci set network.lan.ipaddr='172.16.24.1'
uci set network.lan.netmask='255.255.255.0'
uci set network.lan.ip6assign='60'
/etc/init.d/odhcpd start /etc/init.d/odhcpd start
} }
function blink() { function blink() {
count 3 count 3
while [ "${count}" -gt 0 ]; do while [ "${count}" -gt 0 ]; do
LED $1 LED "${1}"
sleep 0.25 sleep 0.25
LED $2 LED "${2}"
sleep 0.25 sleep 0.25
count=$((count-1)) count=$((count-1))
done done