mirror of
https://github.com/breeze303/nss-packages.git
synced 2025-12-16 08:44:52 +00:00
nss-ecm: workaround insmod issue
switch to using modprobe vs. insmod as it allows more versatility in dependency loading. Signed-off-by: Sean Khan <datapronix@protonmail.com>
This commit is contained in:
parent
7173bd647c
commit
3ffec2d091
@ -1,7 +1,7 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=qca-nss-ecm
|
||||
PKG_RELEASE:=3
|
||||
PKG_RELEASE:=4
|
||||
|
||||
PKG_SOURCE_URL:=https://git.codelinaro.org/clo/qsdk/oss/lklm/qca-nss-ecm.git
|
||||
PKG_SOURCE_PROTO:=git
|
||||
|
||||
@ -69,7 +69,9 @@ load_ecm() {
|
||||
local get_front_end_mode
|
||||
get_front_end_mode="$(get_front_end_mode)"
|
||||
modinfo ecm | awk '/depends/{gsub(",","\n",$NF);print $NF}' | xargs -r -n 1 modprobe
|
||||
insmod ecm front_end_selection="$get_front_end_mode"
|
||||
touch /etc/modules.conf
|
||||
grep -q "options ecm" /etc/modules.conf || echo "options ecm front_end_selection=$get_front_end_mode" >> /etc/modules.conf
|
||||
modprobe ecm
|
||||
echo 1 > /sys/kernel/debug/ecm/ecm_classifier_default/accel_delay_pkts
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user