mirror of https://github.com/hak5/shark-files.git
handle user calling NETMODE more than once
if user calls NETMODE and changes from dhcp server to client it leaves the dhcpd running. stop thatpull/4/head
parent
9febcdee41
commit
52f3349406
|
@ -8,6 +8,7 @@ function show_usage() {
|
|||
case $1 in
|
||||
"DHCP_CLIENT")
|
||||
uci set network.lan.proto='dhcp'
|
||||
/etc/init.d/odhcpd stop
|
||||
;;
|
||||
"DHCP_SERVER")
|
||||
uci set network.lan.proto='none'
|
||||
|
|
Loading…
Reference in New Issue