mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
wifilife-2.5.0
This commit is contained in:
parent
89d19b3904
commit
d6d609ae30
2 changed files with 8 additions and 6 deletions
|
|
@ -1,13 +1,13 @@
|
|||
#
|
||||
# Copyright (C) 2018 Iopsys
|
||||
# Copyright (C) 2019 Iopsys
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=wifilife
|
||||
PKG_VERSION:=2.4.4
|
||||
PKG_VERSION:=2.5.0
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_SOURCE_VERSION:=762245ef090e5073c4d4a1ce310d560f9e1b02fb
|
||||
PKG_SOURCE_VERSION:=9b9a787120743d121ce867251af45da076fe7cce
|
||||
PKG_MAINTAINER:=Anjan Chanda <anjan.chanda@iopsys.eu>
|
||||
|
||||
ifeq ($(CONFIG_WIFILIFE_OPEN),y)
|
||||
|
|
@ -56,6 +56,7 @@ define Package/wifilife/install
|
|||
$(CP) -r ./files/* $(1)/
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wifiagent $(1)/usr/sbin/
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wificntlr $(1)/usr/sbin/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,wifilife))
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@
|
|||
|
||||
START=96
|
||||
STOP=10
|
||||
PROG=/usr/sbin/wifiagent
|
||||
PROG_AGENT=/usr/sbin/wifiagent
|
||||
PROG_CNTLR=/usr/sbin/wificntlr
|
||||
ENABLE=/tmp/owsd_enable
|
||||
USE_PROCD=1
|
||||
EXTRA_COMMANDS="enable_check"
|
||||
|
|
@ -12,7 +13,7 @@ start_service() {
|
|||
[ "$(uci -q get wifilife.@wifilife[0].enabled)" == "0" ] && return
|
||||
|
||||
procd_open_instance
|
||||
procd_set_param command ${PROG} -d -l -f -o /tmp/wifiagent.log
|
||||
procd_set_param command ${PROG_AGENT} -d -l -f -o /tmp/wifiagent.log
|
||||
procd_set_param respawn
|
||||
procd_close_instance
|
||||
|
||||
|
|
@ -21,7 +22,7 @@ start_service() {
|
|||
config_get enable ubusproxy enable
|
||||
if [ "$enable" == "1" ]; then
|
||||
echo $enable > $ENABLE
|
||||
procd_set_param command ${PROG} -c -d -l -f -o /tmp/wificntlr.log
|
||||
procd_set_param command ${PROG_CNTLR} -d -l -f -o /tmp/wificntlr.log
|
||||
fi
|
||||
procd_close_instance
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue