oaf: disable autoload

This commit is contained in:
CN_SZTL 2020-05-26 22:51:15 +08:00 committed by AmadeusGhost
parent 05dcb29257
commit 5e063daf8c
2 changed files with 3 additions and 2 deletions

View File

@ -22,7 +22,6 @@ define KernelPackage/oaf
FILES:=$(PKG_BUILD_DIR)/oaf.ko
DEPENDS:=+kmod-ipt-conntrack
KCONFIG:=
AUTOLOAD:=$(call AutoProbe,oaf)
endef
define KernelPackage/oaf/description

View File

@ -2,10 +2,12 @@
START=96
start() {
lsmod | grep -q oaf 2>/dev/null || modprobe oaf
gen_class.sh /etc/appfilter/feature.cfg
appfilter.sh
}
stop() {
echo "stop appfilter"
echo "stop appfilter"
rmmod oaf >/dev/null 2>&1
}