You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

11 lines
256 B

#!/bin/sh
uci -q get dhcp.isc_dhcpcd && exit 0
touch /etc/config/dhcp
uci batch <<EOF
set dhcp.isc_dhcpd=isc_dhcpd
set dhcp.isc_dhcpd.authoritative='1'
set dhcp.isc_dhcpd.default_lease_time='3600'
set dhcp.isc_dhcpd.max_lease_time='86400'
commit dhcp
EOF