From b0da8c4a920e9417027368744a495c3f7e6d90f8 Mon Sep 17 00:00:00 2001 From: jjm2473 <1129525450@qq.com> Date: Fri, 24 Dec 2021 11:06:29 +0800 Subject: [PATCH] package/rtk-supplicant: only enable on kernel 4.4.* (cherry picked from commit 8242ee28fda7070fe5ba0e7d8fcb53b4551d8d60) --- package/realtek/rtk-supplicant/Makefile | 3 +-- package/realtek/rtk-supplicant/files/rtk-supplicant.init | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package/realtek/rtk-supplicant/Makefile b/package/realtek/rtk-supplicant/Makefile index f0217d1c56..b0b5d0de97 100644 --- a/package/realtek/rtk-supplicant/Makefile +++ b/package/realtek/rtk-supplicant/Makefile @@ -14,7 +14,7 @@ PKG_VERSION:=1.3.1 else PKG_VERSION:=1 endif -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_FLAGS:=nonshared PKG_BUILD_DEPENDS:=openmax @@ -59,7 +59,6 @@ define Package/rtk-supplicant/install $(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) ./files/rtk-supplicant.init $(1)/etc/init.d/rtk-supplicant -# $(INSTALL_BIN) ./files/openmax.init $(1)/etc/init.d/openmax $(INSTALL_BIN) $(PKG_BUILD_DIR)/root/usr/bin/ALSADaemon $(1)/usr/bin/rtk-supplicant endef diff --git a/package/realtek/rtk-supplicant/files/rtk-supplicant.init b/package/realtek/rtk-supplicant/files/rtk-supplicant.init index bb7351971c..5bdcf49696 100644 --- a/package/realtek/rtk-supplicant/files/rtk-supplicant.init +++ b/package/realtek/rtk-supplicant/files/rtk-supplicant.init @@ -5,11 +5,13 @@ START=99 STOP=00 start() { + uname -r | grep -q '^4\.4\.' || return 0 start-stop-daemon -m -p /var/run/rtk-supplicant.pid -b -S -x /usr/bin/rtk-supplicant } stop() { + uname -r | grep -q '^4\.4\.' || return 0 start-stop-daemon -p /var/run/rtk-supplicant.pid -K -s SIGQUIT sleep 2 }