package/rtk-supplicant: only enable on kernel 4.4.*

(cherry picked from commit 8242ee28fda7070fe5ba0e7d8fcb53b4551d8d60)
This commit is contained in:
jjm2473 2021-12-24 11:06:29 +08:00
parent 9bc6e6e6c7
commit b0da8c4a92
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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
}