handle user calling NETMODE more than once

if user calls NETMODE and changes from dhcp server to client it leaves
  the dhcpd running. stop that
pull/4/head
Rick Farina (Zero_Chaos) 2019-12-12 13:56:48 -05:00
parent 9febcdee41
commit 52f3349406
No known key found for this signature in database
GPG Key ID: A29433C0AA431DDC
1 changed files with 1 additions and 0 deletions

View File

@ -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'