[rdkb][mt7986][bsp][Add init PPPQ service]
[Description]
Add init PPPQ service
1. default value is 2
[Release-log]
diff --git a/recipes-devtools/init-filogic/files/init-PPPQ.service b/recipes-devtools/init-filogic/files/init-PPPQ.service
new file mode 100644
index 0000000..d382594
--- /dev/null
+++ b/recipes-devtools/init-filogic/files/init-PPPQ.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Init PPPQ
+DefaultDependencies=no
+after=CcspPandMSsp.service
+
+[Service]
+Type=oneshot
+ExecStart=/bin/bash -c "/bin/echo 2 > /sys/kernel/debug/mtk_ppe/qos_toggle"
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target
\ No newline at end of file
diff --git a/recipes-devtools/init-filogic/init-filogic.bb b/recipes-devtools/init-filogic/init-filogic.bb
index 6526343..8245709 100644
--- a/recipes-devtools/init-filogic/init-filogic.bb
+++ b/recipes-devtools/init-filogic/init-filogic.bb
@@ -13,6 +13,7 @@
file://init-bridge.sh \
file://init-Lanbridge.service \
file://factorydefault \
+ file://init-PPPQ.service \
"
RDEPENDS_${PN} += "bash"
@@ -20,8 +21,10 @@
SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE_${PN} = " init-IPv6.service"
SYSTEMD_SERVICE_${PN} += " init-Lanbridge.service"
+SYSTEMD_SERVICE_${PN} += " init-PPPQ.service"
FILES_${PN} += "{systemd_unitdir}/system/init-IPv6.service"
FILES_${PN} += "{systemd_unitdir}/system/init-Lanbridge.service"
+FILES_${PN} += "{systemd_unitdir}/system/init-PPPQ.service"
do_install() {
install -d ${D}${sbindir}
@@ -31,4 +34,5 @@
install -d ${D}${systemd_unitdir}/system/
install -m 0644 ${S}/init-IPv6.service ${D}${systemd_unitdir}/system
install -m 0644 ${S}/init-Lanbridge.service ${D}${systemd_unitdir}/system
+ install -m 0644 ${S}/init-PPPQ.service ${D}${systemd_unitdir}/system
}