Import the udhcpsnoop package from the TIP feed. The original Makefile in TIP repo spcifies GPL-2.0 as the PKG_LICENSE. However this is a mistake, as the SPDX headers of the repos source files all specify BSD-3-Clause as their license. See https://github.com/Telecominfraproject/wlan-ap/blob/uCentral-trunk/feeds/ucentral/udhcpsnoop/Makefile Signed-off-by: David Bauer <mail@david-bauer.net>
22 lines
352 B
Bash
Executable file
22 lines
352 B
Bash
Executable file
#!/bin/sh /etc/rc.common
|
|
|
|
START=80
|
|
|
|
USE_PROCD=1
|
|
PROG=/usr/sbin/udhcpsnoop
|
|
|
|
service_triggers() {
|
|
procd_add_reload_trigger dhcpsnoop
|
|
}
|
|
|
|
start_service() {
|
|
[ "$(uci get dhcpsnoop.@snooping[-1].enable)" -eq 1 ] || return
|
|
procd_open_instance
|
|
procd_set_param command "$PROG"
|
|
procd_set_param respawn
|
|
procd_close_instance
|
|
}
|
|
|
|
reload_service() {
|
|
restart
|
|
}
|