1 #!/bin/sh /etc/rc.common
4 # Setting the stop value makes the restart script unreliable when invoked by LuCI
9 #validate_section_dcwapd() {
10 # uci_validate_section dcwapd general "${1}" \
15 # validate_section_dcwapd dcwapd
17 # only run the start script if the enabled uci option is set properly
18 enabled
=$
(uci get dcwapd.general.enabled
)
19 if [ "${enabled}" = "1" ]; then
20 ${scriptdir}/start_dcwapd.sh
22 echo "dcwapd is disabled in UCI"
28 ${scriptdir}/stop_dcwapd.sh
29 # Add a sleep after stopping because an immediate restat will fail otherwise