mirror of https://github.com/hak5/shark-files.git
fix the pre-existing issue of DHCP_SERVER not working
parent
bff3daee88
commit
ca54f29c7f
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
function show_usage() {
|
||||
echo "Usage: $0 [DHCP_CLIENT|DHCP_SERVER]"
|
||||
echo "Usage: $0 [DHCP_CLIENT|DHCP_SERVER|AUTO]"
|
||||
echo ""
|
||||
}
|
||||
|
||||
|
@ -11,16 +11,19 @@ function configure_client() {
|
|||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
function blink() {
|
||||
count 3
|
||||
while [ "${count}" -gt 0 ]; do
|
||||
LED $1
|
||||
LED "${1}"
|
||||
sleep 0.25
|
||||
LED $2
|
||||
LED "${2}"
|
||||
sleep 0.25
|
||||
count=$((count-1))
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue