mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-01-07 23:08:47 +08:00
Compare commits
40 Commits
netmode_de
...
release-4.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4063dbca6f | ||
|
|
d90ee55fc2 | ||
|
|
c29af83661 | ||
|
|
015d668cab | ||
|
|
dee3730e40 | ||
|
|
9cadc4ad2e | ||
|
|
ead36cf53e | ||
|
|
1da13346a6 | ||
|
|
f965eb801e | ||
|
|
5bfe6638e5 | ||
|
|
21c21bf609 | ||
|
|
abd2e29a85 | ||
|
|
c0931baab2 | ||
|
|
d515462ba9 | ||
|
|
2573d76b4e | ||
|
|
e15f018362 | ||
|
|
927bad6225 | ||
|
|
bdcc74dca4 | ||
|
|
d984398317 | ||
|
|
b78bb9d152 | ||
|
|
a652b67d04 | ||
|
|
0f85c77d41 | ||
|
|
2a2d942329 | ||
|
|
db2cbd0db2 | ||
|
|
210bbb570b | ||
|
|
b4f129d582 | ||
|
|
34548bd901 | ||
|
|
fe47b9a923 | ||
|
|
0edeb78d60 | ||
|
|
05b8383f62 | ||
|
|
3a6d301cfe | ||
|
|
44bf5a6c33 | ||
|
|
0f744a5cda | ||
|
|
a8c7c8989f | ||
|
|
f14dc75e71 | ||
|
|
a218fa0130 | ||
|
|
d21057904b | ||
|
|
69aaece76b | ||
|
|
167bfd2e49 | ||
|
|
5ac828fc16 |
@@ -1,22 +1,22 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2019 Iopsys
|
# Copyright (C) 2019 IOPSYS
|
||||||
#
|
#
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=libbbfdm
|
PKG_NAME:=libbbfdm
|
||||||
PKG_VERSION:=1.0-2019-11-02
|
PKG_VERSION:=1.0-2019-12-27
|
||||||
PKG_FIXUP:=autoreconf
|
PKG_FIXUP:=autoreconf
|
||||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/bbf.git
|
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/bbf.git
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_VERSION:=a33b47b9c34bdd174e39b54525b082259c60850c
|
PKG_SOURCE_VERSION:=fc1ea29a568dbde333942a0ad199eefe8b036d33
|
||||||
PKG_RELEASE=$(PKG_SOURCE_VERSION)
|
PKG_RELEASE=$(PKG_SOURCE_VERSION)
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
|
||||||
PKG_LICENSE:=GPLv2
|
PKG_LICENSE:=LGPL-2.1
|
||||||
PKG_LICENSE_FILES:=LICENSE
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ define Package/dectmngr2
|
|||||||
CATEGORY:=Utilities
|
CATEGORY:=Utilities
|
||||||
TITLE:=Dectmngr2
|
TITLE:=Dectmngr2
|
||||||
URL:=
|
URL:=
|
||||||
DEPENDS:= +natalie-dect-h bcmkernel +libubox +ubus +libpicoevent endptmngr
|
DEPENDS:= +natalie-dect-h +PACKAGE_bcmkernel:bcmkernel +PACKAGE_bcmopen:bcmopen @(PACKAGE_bcmkernel||PACKAGE_bcmopen) +libubox +ubus +libpicoevent endptmngr
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/dectmngr2/description
|
define Package/dectmngr2/description
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ START=99
|
|||||||
USE_PROCD=1
|
USE_PROCD=1
|
||||||
|
|
||||||
RULE_LIST="/tmp/easy_qos_rule.list"
|
RULE_LIST="/tmp/easy_qos_rule.list"
|
||||||
|
CLIENT_LIST="/tmp/easy_qos_class_client.list"
|
||||||
BRIDGE_INTF=""
|
BRIDGE_INTF=""
|
||||||
|
|
||||||
[ -f /etc/profile.d/intel.sh ] && {
|
[ -f /etc/profile.d/intel.sh ] && {
|
||||||
@@ -16,6 +17,13 @@ log() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
exec_log() {
|
exec_log() {
|
||||||
|
${@}
|
||||||
|
if [ "${?}" -ne 0 ]; then
|
||||||
|
log "Failed to create ${@}";
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
exec_class_log() {
|
||||||
${@} |grep -i successful
|
${@} |grep -i successful
|
||||||
if [ "${?}" -ne 0 ]; then
|
if [ "${?}" -ne 0 ]; then
|
||||||
log "Failed to create ${@}";
|
log "Failed to create ${@}";
|
||||||
@@ -46,6 +54,114 @@ get_priority() {
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get_mark() {
|
||||||
|
local prio=$(echo $1|tr [A-Z] [a-z]);
|
||||||
|
case "${prio}" in
|
||||||
|
"lowest")
|
||||||
|
echo "0x41/0x3df";;
|
||||||
|
"low")
|
||||||
|
echo "0x82/0x3df";;
|
||||||
|
"besteffort")
|
||||||
|
echo "0xc3/0x3df";;
|
||||||
|
"normal")
|
||||||
|
echo "0x104/0x3df";;
|
||||||
|
"video")
|
||||||
|
echo "0x145/0x3df";;
|
||||||
|
"medium")
|
||||||
|
echo "0x186/0x3df";;
|
||||||
|
"high")
|
||||||
|
echo "0x1c7/0x3df";;
|
||||||
|
"highest")
|
||||||
|
echo "0x208/0x3df";;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
clean_client_entries() {
|
||||||
|
[ -f ${CLIENT_LIST} ] && rm ${CLIENT_LIST}
|
||||||
|
}
|
||||||
|
|
||||||
|
map_client_entries() {
|
||||||
|
local clients ip mac host
|
||||||
|
|
||||||
|
json_load "$(ubus call router.network 'clients')"
|
||||||
|
json_get_keys keys
|
||||||
|
|
||||||
|
for key in ${keys};
|
||||||
|
do
|
||||||
|
json_select ${key}
|
||||||
|
json_get_vars ipaddr macaddr hostname
|
||||||
|
clients="${macaddr} ${ipaddr} ${hostname};${clients}"
|
||||||
|
json_select ..
|
||||||
|
done
|
||||||
|
|
||||||
|
json_init
|
||||||
|
|
||||||
|
IFS=";"
|
||||||
|
for client in ${clients};
|
||||||
|
do
|
||||||
|
macaddr=$(echo ${client} | cut -d" " -f1)
|
||||||
|
json_add_object "${macaddr//:/_}"
|
||||||
|
json_add_string "ip" "$(echo ${client} | cut -d" " -f2)"
|
||||||
|
json_add_string "macaddr" "$(echo ${client} | cut -d" " -f1)"
|
||||||
|
json_add_string "host" "$(echo ${client} | cut -d" " -f3)"
|
||||||
|
json_close_object
|
||||||
|
done
|
||||||
|
|
||||||
|
IFS=' '
|
||||||
|
echo `json_dump` > ${CLIENT_LIST}
|
||||||
|
json_cleanup
|
||||||
|
}
|
||||||
|
|
||||||
|
# Find the IP of a corresponding mac from arp table
|
||||||
|
get_ipaddress() {
|
||||||
|
local clients ip mac host
|
||||||
|
|
||||||
|
json_load "$(cat ${CLIENT_LIST})"
|
||||||
|
json_get_keys keys
|
||||||
|
|
||||||
|
# jshn seems a bit iffy on having : in key, replace by _
|
||||||
|
json_select "${1//:/_}" 2 > /dev/null
|
||||||
|
json_get_var ip ip
|
||||||
|
|
||||||
|
echo "$ip"
|
||||||
|
}
|
||||||
|
|
||||||
|
check_and_create() {
|
||||||
|
iptables -t mangle -C PREROUTING ${@} 2>/dev/null
|
||||||
|
# Create rule if not exists
|
||||||
|
if [ ${?} -ne 0 ]; then
|
||||||
|
exec_log iptables -t mangle -A PREROUTING ${@}
|
||||||
|
else
|
||||||
|
log "Rule exists for ${@}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
create_ip_rule() {
|
||||||
|
local proto=$1; shift
|
||||||
|
local src_ip=$1; shift
|
||||||
|
local mark=$1; shift
|
||||||
|
local ports=$1;
|
||||||
|
local cmd="";
|
||||||
|
|
||||||
|
cmd="-j EXTMARK --set-mark ${mark}";
|
||||||
|
if [ "${proto}" != "icmp" ]; then
|
||||||
|
if [ -n "${ports}" ]; then
|
||||||
|
cmd="--match multiport --dports ${ports} ${cmd}";
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${proto}" == "icmp" ]; then
|
||||||
|
cmd="-p icmp -m icmp --icmp-type 8 $cmd"
|
||||||
|
elif [ "${proto}" == "all" ]; then
|
||||||
|
cmd="-p all $cmd"
|
||||||
|
else
|
||||||
|
cmd="-p ${proto} -m ${proto} $cmd"
|
||||||
|
fi
|
||||||
|
cmd="-s ${src_ip} $cmd"
|
||||||
|
|
||||||
|
check_and_create ${cmd}
|
||||||
|
}
|
||||||
|
|
||||||
is_lan_bridge() {
|
is_lan_bridge() {
|
||||||
local _section=$1
|
local _section=$1
|
||||||
local _type
|
local _type
|
||||||
@@ -67,10 +183,10 @@ get_bridge_interface() {
|
|||||||
validate_rule_section()
|
validate_rule_section()
|
||||||
{
|
{
|
||||||
uci_validate_section easy_qos rule "${1}" \
|
uci_validate_section easy_qos rule "${1}" \
|
||||||
'priority:string:none' \
|
'priority:string' \
|
||||||
'macaddr:string:none' \
|
'macaddr:string' \
|
||||||
'proto:string:none' \
|
'proto:string:none' \
|
||||||
'port:list(uinteger):none' \
|
'port:list(uinteger)' \
|
||||||
'comment:string:none'
|
'comment:string:none'
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -82,8 +198,14 @@ clear_existing_rules() {
|
|||||||
while read line
|
while read line
|
||||||
do
|
do
|
||||||
log "Deleting old classification rules"
|
log "Deleting old classification rules"
|
||||||
exec_log classcfg -D ${line} -i ${BRIDGE_INTF}
|
exec_class_log classcfg -D ${line} -i ${BRIDGE_INTF}
|
||||||
done <${RULE_LIST}
|
done <${RULE_LIST}
|
||||||
|
|
||||||
|
local rule=$(iptables -t mangle -S PREROUTING|grep -m 1 EXTMARK |sed 's/-A/-D/1')
|
||||||
|
while [ -n "${rule}" ]; do
|
||||||
|
exec_log iptables -t mangle ${rule}
|
||||||
|
rule=$(iptables -t mangle -S PREROUTING|grep -m 1 EXTMARK |sed 's/-A/-D/1')
|
||||||
|
done
|
||||||
sync
|
sync
|
||||||
|
|
||||||
[ -f ${RULE_LIST} ] && rm ${RULE_LIST}
|
[ -f ${RULE_LIST} ] && rm ${RULE_LIST}
|
||||||
@@ -104,13 +226,16 @@ create_rule() {
|
|||||||
if [ "${mac_addr}" != "none" ]; then
|
if [ "${mac_addr}" != "none" ]; then
|
||||||
cmd="--smac ${mac_addr} ${cmd}";
|
cmd="--smac ${mac_addr} ${cmd}";
|
||||||
fi
|
fi
|
||||||
if [ "${ports}" != "none" ]; then
|
|
||||||
IFS=","
|
if [ "${proto}" != "icmp" ]; then
|
||||||
for port in ${ports};
|
if [ "${ports}" != "none" ]; then
|
||||||
do
|
IFS=","
|
||||||
cmd="--dport ${port}:${port} ${cmd}";
|
for port in ${ports};
|
||||||
done
|
do
|
||||||
IFS=' '
|
cmd="--dport ${port}:${port} ${cmd}";
|
||||||
|
done
|
||||||
|
IFS=' '
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if [ "${proto}" != "none" ]; then
|
if [ "${proto}" != "none" ]; then
|
||||||
cmd="-p ${proto} $cmd"
|
cmd="-p ${proto} $cmd"
|
||||||
@@ -119,14 +244,14 @@ create_rule() {
|
|||||||
cmd="-A ${rule_name} $cmd"
|
cmd="-A ${rule_name} $cmd"
|
||||||
|
|
||||||
# Store the rule_names for cleanup on reload
|
# Store the rule_names for cleanup on reload
|
||||||
exec_log classcfg ${cmd}
|
exec_class_log classcfg ${cmd}
|
||||||
[ $? -eq 0 ] && \
|
[ $? -eq 0 ] && \
|
||||||
echo ${rule_name} >> ${RULE_LIST}
|
echo ${rule_name} >> ${RULE_LIST}
|
||||||
}
|
}
|
||||||
|
|
||||||
manage_rule() {
|
manage_rule() {
|
||||||
local cfg="$1"
|
local cfg="$1"
|
||||||
local priority macaddr proto port comment prio_num port_list
|
local priority macaddr proto port comment prio_num port_list ip ipmark
|
||||||
|
|
||||||
validate_rule_section "${1}" || {
|
validate_rule_section "${1}" || {
|
||||||
log "Validation of section failed"
|
log "Validation of section failed"
|
||||||
@@ -135,22 +260,33 @@ manage_rule() {
|
|||||||
|
|
||||||
prio_num=$(get_priority ${priority})
|
prio_num=$(get_priority ${priority})
|
||||||
port_list=$(echo ${port}|sed 's/ /,/g')
|
port_list=$(echo ${port}|sed 's/ /,/g')
|
||||||
|
ipmark=$(get_mark ${priority})
|
||||||
|
ip=$(get_ipaddress ${macaddr})
|
||||||
|
|
||||||
if [ -n "${prio_num}" ]; then
|
if [ -n "${prio_num}" ]; then
|
||||||
if [ "${proto}" == "none" -o "${proto}" == "tcpudp" ]; then
|
if [ "${proto}" == "none" -o "${proto}" == "tcpudp" ]; then
|
||||||
create_rule tcp ${macaddr} ${prio_num} ${port_list}
|
create_rule tcp ${macaddr} ${prio_num} ${port_list}
|
||||||
create_rule udp ${macaddr} ${prio_num} ${port_list}
|
create_rule udp ${macaddr} ${prio_num} ${port_list}
|
||||||
|
if [ -n "${ip}" ]; then
|
||||||
|
create_ip_rule tcp ${ip} ${ipmark} ${port_list}
|
||||||
|
create_ip_rule udp ${ip} ${ipmark} ${port_list}
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
create_rule ${proto} ${macaddr} ${prio_num} ${port_list}
|
create_rule ${proto} ${macaddr} ${prio_num} ${port_list}
|
||||||
|
if [ -n "${ip}" ]; then
|
||||||
|
create_ip_rule ${proto} ${ip} ${ipmark} ${port_list}
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
reload_service() {
|
reload_service() {
|
||||||
get_bridge_interface
|
get_bridge_interface
|
||||||
|
map_client_entries
|
||||||
clear_existing_rules
|
clear_existing_rules
|
||||||
config_load easy_qos
|
config_load easy_qos
|
||||||
config_foreach manage_rule rule
|
config_foreach manage_rule rule
|
||||||
|
clean_client_entries
|
||||||
}
|
}
|
||||||
|
|
||||||
start_service() {
|
start_service() {
|
||||||
|
|||||||
@@ -103,18 +103,18 @@ validate_rule_section()
|
|||||||
|
|
||||||
# Clear existing rules before applying new rules
|
# Clear existing rules before applying new rules
|
||||||
clear_existing_rules() {
|
clear_existing_rules() {
|
||||||
local rule=$(iptables -t mangle -S OUTPUT|grep -m 1 MARK |sed 's/-A/-D/1')
|
local rule=$(iptables -t mangle -S PREROUTING | grep -m 1 MARK |sed 's/-A/-D/1')
|
||||||
while [ -n "${rule}" ]; do
|
while [ -n "${rule}" ]; do
|
||||||
exec_log iptables -t mangle ${rule}
|
exec_log iptables -t mangle ${rule}
|
||||||
rule=$(iptables -t mangle -S OUTPUT|grep -m 1 MARK |sed 's/-A/-D/1')
|
rule=$(iptables -t mangle -S PREROUTING | grep -m 1 MARK |sed 's/-A/-D/1')
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
check_and_create() {
|
check_and_create() {
|
||||||
iptables -t mangle -C OUTPUT ${@} 2>/dev/null
|
iptables -t mangle -C PREROUTING ${@} 2>/dev/null
|
||||||
# Create rule if not exists
|
# Create rule if not exists
|
||||||
if [ ${?} -ne 0 ]; then
|
if [ ${?} -ne 0 ]; then
|
||||||
exec_log iptables -t mangle -A OUTPUT ${@}
|
exec_log iptables -t mangle -A PREROUTING ${@}
|
||||||
else
|
else
|
||||||
log "Rule exists for ${@}"
|
log "Rule exists for ${@}"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ PKG_VERSION:=1.0.1
|
|||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_VERSION:=b88afddd2f4cb216bfcd190f9096c138299c28e2
|
PKG_SOURCE_VERSION:=cec7ae3a5c8348ea2d81a2abac0599a098752e3a
|
||||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/easy-soc-libs.git
|
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/easy-soc-libs.git
|
||||||
PKG_MAINTAINER:=Anjan Chanda <anjan.chanda@iopsys.eu>
|
PKG_MAINTAINER:=Anjan Chanda <anjan.chanda@iopsys.eu>
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)_$(PKG_SOURCE_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)_$(PKG_SOURCE_VERSION).tar.xz
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ PKG_RELEASE:=1
|
|||||||
LOCAL_DEV=0
|
LOCAL_DEV=0
|
||||||
ifneq ($(LOCAL_DEV),1)
|
ifneq ($(LOCAL_DEV),1)
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_VERSION:=63f749faa67670229a5cbaf39ee0fef92d8276f3
|
PKG_SOURCE_VERSION:=90d4082d83ef1d32924c5ecdf5a0f9a5b23d31e7
|
||||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/easy-soc-libs.git
|
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/easy-soc-libs.git
|
||||||
PKG_MAINTAINER:=Anjan Chanda <anjan.chanda@iopsys.eu>
|
PKG_MAINTAINER:=Anjan Chanda <anjan.chanda@iopsys.eu>
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)_$(PKG_SOURCE_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)_$(PKG_SOURCE_VERSION).tar.xz
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ RSTRIP:=true
|
|||||||
export BUILD_DIR
|
export BUILD_DIR
|
||||||
|
|
||||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
PKG_BUILD_PARALLEL:=1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -42,7 +43,7 @@ define Package/endptmngr
|
|||||||
CATEGORY:=Utilities
|
CATEGORY:=Utilities
|
||||||
TITLE:=Brcmslic
|
TITLE:=Brcmslic
|
||||||
URL:=
|
URL:=
|
||||||
DEPENDS:= +libubox +ubus +libpicoevent @(PACKAGE_bcmkernel||PACKAGE_bcmopen) @TARGET_HAS_VOICE
|
DEPENDS:= +libubox +ubus +libpicoevent +PACKAGE_bcmkernel:bcmkernel +PACKAGE_bcmopen:bcmopen @(PACKAGE_bcmkernel||PACKAGE_bcmopen) @TARGET_HAS_VOICE
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/endptmngr/description
|
define Package/endptmngr/description
|
||||||
|
|||||||
@@ -8,11 +8,11 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=icwmp
|
PKG_NAME:=icwmp
|
||||||
PKG_VERSION:=4.0-2019-10-17
|
PKG_VERSION:=4.0-2019-12-02
|
||||||
PKG_FIXUP:=autoreconf
|
PKG_FIXUP:=autoreconf
|
||||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/icwmp.git
|
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/icwmp.git
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_VERSION:=ee2e6c4e4063b822895a6e2612acd4b06caeffa6
|
PKG_SOURCE_VERSION:=26c76a504b4048527c6a93a486aa62529319f087
|
||||||
PKG_RELEASE=$(PKG_SOURCE_VERSION)
|
PKG_RELEASE=$(PKG_SOURCE_VERSION)
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||||
@@ -33,45 +33,52 @@ CWMP_REVISION=$(shell svnversion ./src/ -n|cut -f2 -d:)
|
|||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/icwmp_stun
|
define Package/icwmp_stun
|
||||||
SECTION:=utils
|
SECTION:=utils
|
||||||
CATEGORY:=Utilities
|
CATEGORY:=Utilities
|
||||||
TITLE:=TR-069 stun Client
|
TITLE:=TR-069 stun Client
|
||||||
DEPENDS:=+libubus +libuci +libubox +libjson-c +libopenssl +libblobmsg-json
|
DEPENDS:=+libubus +libuci +libubox +libjson-c +libopenssl +libblobmsg-json
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/icwmp_xmpp
|
define Package/icwmp_xmpp
|
||||||
SECTION:=utils
|
SECTION:=utils
|
||||||
CATEGORY:=Utilities
|
CATEGORY:=Utilities
|
||||||
TITLE:=TR-069 xmpp feature
|
TITLE:=TR-069 xmpp feature
|
||||||
DEPENDS:=+libuci +libubox +libexpat +libstrophe
|
DEPENDS:=+libuci +libubox +libexpat +libstrophe
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/icwmp_twamp
|
define Package/icwmp_twamp
|
||||||
SECTION:=utils
|
SECTION:=utils
|
||||||
CATEGORY:=Utilities
|
CATEGORY:=Utilities
|
||||||
TITLE:=TR-069 twamp feature
|
TITLE:=TR-069 twamp feature
|
||||||
DEPENDS:=+libuci
|
DEPENDS:=+libuci
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/icwmp_udpechoserver
|
define Package/icwmp_udpechoserver
|
||||||
SECTION:=utils
|
SECTION:=utils
|
||||||
CATEGORY:=Utilities
|
CATEGORY:=Utilities
|
||||||
TITLE:=TR-069 udpechoserver feature
|
TITLE:=TR-069 udpechoserver feature
|
||||||
DEPENDS:=+libuci
|
DEPENDS:=+libuci
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/icwmp_bulkdata
|
define Package/icwmp_bulkdata
|
||||||
SECTION:=utils
|
SECTION:=utils
|
||||||
CATEGORY:=Utilities
|
CATEGORY:=Utilities
|
||||||
TITLE:=TR-069 BulkData Collection
|
TITLE:=TR-069 BulkData Collection
|
||||||
DEPENDS:=+libubus +libuci +libubox +libjson-c +libcurl +curl +libblobmsg-json +libbbfdm
|
DEPENDS:=+libubus +libuci +libubox +libjson-c +libcurl +curl +libblobmsg-json +libbbfdm
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/icwmp-tr098
|
||||||
|
SECTION:=utils
|
||||||
|
CATEGORY:=Utilities
|
||||||
|
TITLE:=CWMP client for TR-098 Data Model
|
||||||
|
DEPENDS:=+libuci +libmicroxml +libubox +jshn +libubus +libblobmsg-json +libpthread +ubusd +shflags +getopt +zlib +libjson-c +libopenssl +curl +libcurl +libtr098
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/icwmp/Default
|
define Package/icwmp/Default
|
||||||
SECTION:=utils
|
SECTION:=utils
|
||||||
CATEGORY:=Utilities
|
CATEGORY:=Utilities
|
||||||
TITLE:=CWMP client
|
TITLE:=CWMP client
|
||||||
DEPENDS:=+libuci +libmicroxml +libubox +jshn +libubus +libblobmsg-json +libpthread +ubusd +shflags +getopt +zlib +libjson-c +libopenssl +curl +libbbfdm +libtr098
|
DEPENDS:=+libuci +libmicroxml +libubox +jshn +libubus +libblobmsg-json +libpthread +ubusd +shflags +getopt +zlib +libjson-c +libopenssl +curl +libbbfdm
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/icwmp/description
|
define Package/icwmp/description
|
||||||
@@ -103,10 +110,6 @@ define Build/Prepare
|
|||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_TARGET_iopsys_ramips),y)
|
|
||||||
TARGET_CFLAGS += -DEX400
|
|
||||||
endif
|
|
||||||
|
|
||||||
TARGET_CFLAGS += \
|
TARGET_CFLAGS += \
|
||||||
-D_GNU_SOURCE -D_AADJ
|
-D_GNU_SOURCE -D_AADJ
|
||||||
|
|
||||||
@@ -158,21 +161,10 @@ CONFIGURE_ARGS += \
|
|||||||
--enable-devel
|
--enable-devel
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_PACKAGE_libtr098),y)
|
|
||||||
CONFIGURE_ARGS += \
|
|
||||||
--enable-tr098
|
|
||||||
endif
|
|
||||||
|
|
||||||
CONFIGURE_ARGS += \
|
|
||||||
--enable-tr181
|
|
||||||
|
|
||||||
define Package/icwmp-$(BUILD_VARIANT)/install
|
define Package/icwmp-$(BUILD_VARIANT)/install
|
||||||
$(INSTALL_DIR) $(1)/etc/icwmpd
|
$(INSTALL_DIR) $(1)/etc/icwmpd
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(CP) $(PKG_BUILD_DIR)/bin/icwmpd $(1)/usr/sbin
|
$(CP) $(PKG_BUILD_DIR)/bin/icwmpd $(1)/usr/sbin
|
||||||
ifeq ($(CONFIG_PACKAGE_libtr098),y)
|
|
||||||
$(CP) $(PKG_BUILD_DIR)/bin/icwmp_tr098d $(1)/usr/sbin
|
|
||||||
endif
|
|
||||||
$(INSTALL_DIR) $(1)/etc/config
|
$(INSTALL_DIR) $(1)/etc/config
|
||||||
$(INSTALL_CONF) $(PKG_BUILD_DIR)/config/cwmp $(1)/etc/config
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/config/cwmp $(1)/etc/config
|
||||||
$(INSTALL_CONF) $(PKG_BUILD_DIR)/config/firewall.cwmp $(1)/etc/firewall.cwmp
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/config/firewall.cwmp $(1)/etc/firewall.cwmp
|
||||||
@@ -190,6 +182,11 @@ endif
|
|||||||
$(CP) ./files/* $(1)/
|
$(CP) ./files/* $(1)/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/icwmp-tr098/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
|
$(CP) $(PKG_BUILD_DIR)/bin/icwmp_tr098d $(1)/usr/sbin
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/icwmp_stun/install
|
define Package/icwmp_stun/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/icwmp_stund $(1)/usr/sbin/icwmp_stund
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/icwmp_stund $(1)/usr/sbin/icwmp_stund
|
||||||
@@ -261,4 +258,5 @@ $(eval $(call BuildPackage,icwmp_xmpp))
|
|||||||
$(eval $(call BuildPackage,icwmp_udpechoserver))
|
$(eval $(call BuildPackage,icwmp_udpechoserver))
|
||||||
$(eval $(call BuildPackage,icwmp_twamp))
|
$(eval $(call BuildPackage,icwmp_twamp))
|
||||||
$(eval $(call BuildPackage,icwmp_bulkdata))
|
$(eval $(call BuildPackage,icwmp_bulkdata))
|
||||||
|
$(eval $(call BuildPackage,icwmp-tr098))
|
||||||
$(eval $(call BuildPackage,icwmp-zstream))
|
$(eval $(call BuildPackage,icwmp-zstream))
|
||||||
|
|||||||
@@ -194,5 +194,5 @@ CONFIG_OPENVPN_openssl_ENABLE_IPROUTE2=y
|
|||||||
CONFIG_KERNEL_DEVTMPFS=y
|
CONFIG_KERNEL_DEVTMPFS=y
|
||||||
CONFIG_KERNEL_DEVTMPFS_MOUNT=y
|
CONFIG_KERNEL_DEVTMPFS_MOUNT=y
|
||||||
# CONFIG_BUSYBOX_CONFIG_IP is not set
|
# CONFIG_BUSYBOX_CONFIG_IP is not set
|
||||||
LOCAL_MIRROR="http://download.iopsys.eu/iopsys/mirror/"
|
CONFIG_LOCALMIRROR="http://download.iopsys.eu/iopsys/mirror/"
|
||||||
|
|
||||||
|
|||||||
@@ -5,10 +5,10 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=meshcomms
|
PKG_NAME:=meshcomms
|
||||||
PKG_VERSION:=1.0.1
|
PKG_VERSION:=1.0.2
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_VERSION:=8d5808d81d1fc96e4ce4ee682847b4de15b46224
|
PKG_SOURCE_VERSION:=72048b609104a5479ac2cdae21d5d1f733fd2bc3
|
||||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/fork/meshcomms.git
|
PKG_SOURCE_URL:=https://dev.iopsys.eu/fork/meshcomms.git
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
|
||||||
|
|
||||||
@@ -17,12 +17,6 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|||||||
PKG_LICENSE:=BSD2+Patent
|
PKG_LICENSE:=BSD2+Patent
|
||||||
PKG_LICENSE_FILES:=LICENSE
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
|
||||||
PLATFORM := linux
|
|
||||||
FLAVOUR := iopsys
|
|
||||||
|
|
||||||
export PLATFORM
|
|
||||||
export FLAVOUR
|
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/meshcomms
|
define Package/meshcomms
|
||||||
@@ -39,14 +33,8 @@ endef
|
|||||||
|
|
||||||
TARGET_CFLAGS += \
|
TARGET_CFLAGS += \
|
||||||
-I$(STAGING_DIR)/usr/include \
|
-I$(STAGING_DIR)/usr/include \
|
||||||
-D_GNU_SOURCE \
|
-D_GNU_SOURCE
|
||||||
-DDO_NOT_ACCEPT_UNAUTHENTICATED_COMMANDS
|
# -DDO_NOT_ACCEPT_UNAUTHENTICATED_COMMANDS
|
||||||
|
|
||||||
ifneq ($(CONFIG_BIG_ENDIAN),)
|
|
||||||
TARGET_CFLAGS += -D_HOST_IS_BIG_ENDIAN_=1
|
|
||||||
else
|
|
||||||
TARGET_CFLAGS += -D_HOST_IS_LITTLE_ENDIAN_=1
|
|
||||||
endif
|
|
||||||
|
|
||||||
#define Build/Prepare
|
#define Build/Prepare
|
||||||
# $(CP) -rf ./meshcomms/* $(PKG_BUILD_DIR)/
|
# $(CP) -rf ./meshcomms/* $(PKG_BUILD_DIR)/
|
||||||
@@ -54,11 +42,26 @@ endif
|
|||||||
|
|
||||||
define Package/meshcomms/install
|
define Package/meshcomms/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
|
$(INSTALL_DIR) $(STAGING_DIR)/usr/lib
|
||||||
|
$(INSTALL_DIR) $(STAGING_DIR)/usr/include
|
||||||
|
$(INSTALL_DIR) $(STAGING_DIR)/usr/include/meshcomms
|
||||||
|
$(INSTALL_DIR) $(STAGING_DIR)/usr/include/meshcomms/common
|
||||||
|
$(INSTALL_DIR) $(STAGING_DIR)/usr/include/meshcomms/bbf
|
||||||
|
$(INSTALL_DIR) $(STAGING_DIR)/usr/include/meshcomms/al
|
||||||
|
$(INSTALL_DIR) $(STAGING_DIR)/usr/include/meshcomms/factory
|
||||||
$(INSTALL_DIR) $(1)/etc/init.d
|
$(INSTALL_DIR) $(1)/etc/init.d
|
||||||
$(INSTALL_DIR) $(1)/etc/config
|
$(INSTALL_DIR) $(1)/etc/config
|
||||||
$(INSTALL_CONF) ./files/meshcomms.conf $(1)/etc/config/meshcomms
|
$(INSTALL_CONF) ./files/meshcomms.conf $(1)/etc/config/meshcomms
|
||||||
$(INSTALL_BIN) ./files/meshcomms.init $(1)/etc/init.d/meshcomms
|
$(INSTALL_BIN) ./files/meshcomms.init $(1)/etc/init.d/meshcomms
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/output/al_entity $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/output/al_entity $(1)/usr/sbin/
|
||||||
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/output/libmeshcomms.so $(1)/usr/lib
|
||||||
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/output/libmeshcomms.so $(STAGING_DIR)/usr/lib
|
||||||
|
$(CP) $(PKG_BUILD_DIR)/include/meshcomms.h $(STAGING_DIR)/usr/include/meshcomms/
|
||||||
|
$(CP) $(PKG_BUILD_DIR)/src/common/interfaces/*.h $(STAGING_DIR)/usr/include/meshcomms/
|
||||||
|
$(CP) $(PKG_BUILD_DIR)/src/factory/interfaces/*.h $(STAGING_DIR)/usr/include/meshcomms/
|
||||||
|
$(CP) $(PKG_BUILD_DIR)/src/factory/interfaces/extensions/bbf/*.h $(STAGING_DIR)/usr/include/meshcomms/
|
||||||
|
$(CP) $(PKG_BUILD_DIR)/src/al/internal_interfaces/*.h $(STAGING_DIR)/usr/include/meshcomms/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,meshcomms))
|
$(eval $(call BuildPackage,meshcomms))
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ PKG_SOURCE_PROTO:=git
|
|||||||
PKG_SOURCE_VERSION:=9e2236989ff58d0db897f938b6b07b535144e0e2
|
PKG_SOURCE_VERSION:=9e2236989ff58d0db897f938b6b07b535144e0e2
|
||||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
|
||||||
PKG_LICENSE:=PROPRIETARY
|
PKG_LICENSE:=PROPRIETARY RTX
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
include $(INCLUDE_DIR)/image.mk
|
include $(INCLUDE_DIR)/image.mk
|
||||||
|
|||||||
@@ -244,17 +244,16 @@ revert_netmode() {
|
|||||||
|
|
||||||
ubus call leds set '{"state" : "allflash"}'
|
ubus call leds set '{"state" : "allflash"}'
|
||||||
logger -s -p user.info -t "netmode" "Could not switch to '$from' mode; going back to '$to' mode" > /dev/console
|
logger -s -p user.info -t "netmode" "Could not switch to '$from' mode; going back to '$to' mode" > /dev/console
|
||||||
|
cp -af $CONF_BACKUP_DIR/* /etc/config/
|
||||||
|
sync
|
||||||
uci -q set netmode.setup.curmode="$to"
|
uci -q set netmode.setup.curmode="$to"
|
||||||
uci -q set netmode.setup.repeaterready="$rready"
|
uci -q set netmode.setup.repeaterready="$rready"
|
||||||
uci commit netmode
|
uci commit netmode
|
||||||
cp -af $CONF_BACKUP_DIR/* /etc/config/
|
|
||||||
sync
|
|
||||||
rm -rf $CONF_BACKUP_DIR
|
rm -rf $CONF_BACKUP_DIR
|
||||||
rm -rf $OLD_MODE_FILE
|
rm -rf $OLD_MODE_FILE
|
||||||
|
|
||||||
logger -s -p user.info -t "netmode" "Restarting network services" > /dev/console
|
logger -s -p user.info -t "netmode" "Restarting network services" > /dev/console
|
||||||
ubus call network reload
|
/etc/init.d/network restart
|
||||||
wifi reload
|
|
||||||
ubus call router.network reload
|
ubus call router.network reload
|
||||||
ubus call leds set '{"state" : "normal"}'
|
ubus call leds set '{"state" : "normal"}'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ PKG_RELEASE:=1
|
|||||||
|
|
||||||
PKG_SOURCE_PROTO=git
|
PKG_SOURCE_PROTO=git
|
||||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/owsd.git
|
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/owsd.git
|
||||||
PKG_SOURCE_VERSION:=a83448ed65e1c76411b9c6553d64b5d623b8bcd7
|
PKG_SOURCE_VERSION:=1c6efa76a23b9a8236a8f6d3b43349cf1e23655a
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||||
PKG_SOURCE_SUBDIR:=${PKG_NAME}-${PKG_VERSION}
|
PKG_SOURCE_SUBDIR:=${PKG_NAME}-${PKG_VERSION}
|
||||||
PKG_INSTALL:=1
|
PKG_INSTALL:=1
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ include $(INCLUDE_DIR)/kernel.mk
|
|||||||
PKG_NAME:=questd
|
PKG_NAME:=questd
|
||||||
PKG_VERSION:=4.1.1
|
PKG_VERSION:=4.1.1
|
||||||
|
|
||||||
PKG_SOURCE_VERSION:=04eb78c28d96801951b204bc434f84d43d4a0d03
|
PKG_SOURCE_VERSION:=d4cbcb2e60154c51c19a5a500775236c6ab072dd
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/questd
|
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/questd
|
||||||
|
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=libtr098
|
PKG_NAME:=libtr098
|
||||||
PKG_VERSION:=1.0-2019-09-25
|
PKG_VERSION:=1.0-2019-11-28
|
||||||
PKG_FIXUP:=autoreconf
|
PKG_FIXUP:=autoreconf
|
||||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/tr-098
|
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/tr-098
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_VERSION:=c2de93e288907da239652bd137f2ddee389b5042
|
PKG_SOURCE_VERSION:=ef37524dfb7795ff75b3d10344f8f078f4b892be
|
||||||
PKG_RELEASE=$(PKG_SOURCE_VERSION)
|
PKG_RELEASE=$(PKG_SOURCE_VERSION)
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
|||||||
@@ -153,7 +153,6 @@ assemble_and_copy_config()
|
|||||||
[ -f $TMPL_ASTERISK ] && cp $TMPL_ASTERISK $WORKDIR/asterisk.conf
|
[ -f $TMPL_ASTERISK ] && cp $TMPL_ASTERISK $WORKDIR/asterisk.conf
|
||||||
[ -f $TMPL_CDR ] && cp $TMPL_CDR $WORKDIR/cdr.conf
|
[ -f $TMPL_CDR ] && cp $TMPL_CDR $WORKDIR/cdr.conf
|
||||||
[ -f $TMPL_CEL ] && cp $TMPL_CEL $WORKDIR/cel.conf
|
[ -f $TMPL_CEL ] && cp $TMPL_CEL $WORKDIR/cel.conf
|
||||||
[ -f $TMPL_INDICATIONS ] && cp $TMPL_INDICATIONS $WORKDIR/indications.conf
|
|
||||||
[ -f $TMPL_MANAGER ] && cp $TMPL_MANAGER $WORKDIR/manager.conf
|
[ -f $TMPL_MANAGER ] && cp $TMPL_MANAGER $WORKDIR/manager.conf
|
||||||
[ -f $TMPL_MODULES ] && cp $TMPL_MODULES $WORKDIR/modules.conf
|
[ -f $TMPL_MODULES ] && cp $TMPL_MODULES $WORKDIR/modules.conf
|
||||||
[ -f $TMPL_EXTENSIONS_MACRO ] && cp $TMPL_EXTENSIONS_MACRO $WORKDIR/extensions_macro.conf
|
[ -f $TMPL_EXTENSIONS_MACRO ] && cp $TMPL_EXTENSIONS_MACRO $WORKDIR/extensions_macro.conf
|
||||||
@@ -165,6 +164,14 @@ assemble_and_copy_config()
|
|||||||
[ -f $TMPL_UDPTL ] && cp $TMPL_UDPTL $WORKDIR/udptl.conf
|
[ -f $TMPL_UDPTL ] && cp $TMPL_UDPTL $WORKDIR/udptl.conf
|
||||||
[ -f $SPECRATECFG ] && cp $SPECRATECFG $WORKDIR/special_rate_nr.cfg
|
[ -f $SPECRATECFG ] && cp $SPECRATECFG $WORKDIR/special_rate_nr.cfg
|
||||||
|
|
||||||
|
[ -f $TMPL_INDICATIONS ] && {
|
||||||
|
cp $TMPL_INDICATIONS $WORKDIR/indications.conf
|
||||||
|
|
||||||
|
config_get country TEL country
|
||||||
|
country_code=$(supportedCountries |grep $country |cut -d':' -f3 |tr [A-Z] [a-z])
|
||||||
|
sed -i "s/^country=.*/country=${country_code}/g" $WORKDIR/indications.conf
|
||||||
|
}
|
||||||
|
|
||||||
test -e $TMPL_MEETME && cp $TMPL_MEETME $WORKDIR/meetme.conf
|
test -e $TMPL_MEETME && cp $TMPL_MEETME $WORKDIR/meetme.conf
|
||||||
|
|
||||||
# Handle extensions_extra, carry over old file to new config if there is one
|
# Handle extensions_extra, carry over old file to new config if there is one
|
||||||
@@ -256,9 +263,7 @@ read_codecs_ptime()
|
|||||||
#
|
#
|
||||||
read_lines()
|
read_lines()
|
||||||
{
|
{
|
||||||
local line call_lines lineid ldx lines llength clength
|
local line call_lines lines clength
|
||||||
local loffset=$(ubus -t 1 call voice.asterisk platform | jsonfilter -e @.lineoffset)
|
|
||||||
loffset=${loffset:-0}
|
|
||||||
|
|
||||||
config_get call_lines $1 call_lines
|
config_get call_lines $1 call_lines
|
||||||
|
|
||||||
@@ -267,28 +272,17 @@ read_lines()
|
|||||||
# convert line format to <LINENAME><LINEID>
|
# convert line format to <LINENAME><LINEID>
|
||||||
case $line in
|
case $line in
|
||||||
[0-9])
|
[0-9])
|
||||||
line="$LINENAME$line"
|
|
||||||
;;
|
;;
|
||||||
"$CHANNELNAME"/[0-9])
|
"$CHANNELNAME"/[0-9])
|
||||||
|
# get the index from channel name
|
||||||
clength=$(echo $CHANNELNAME | wc -c)
|
clength=$(echo $CHANNELNAME | wc -c)
|
||||||
line="$LINENAME${line:$clength}"
|
line="${line:$clength}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# get the index from line name
|
[ -n "$line" ] || continue
|
||||||
# llength=$(echo $LINENAME | wc -c)
|
|
||||||
# lineid="${lineid:$llength}"
|
|
||||||
|
|
||||||
# get the index from uci config order
|
lines="$lines$CHANNELNAME/$line&"
|
||||||
lineid="$(uci show voice_client | grep =tel_line | grep -wn $line | cut -d ':' -f1)"
|
|
||||||
|
|
||||||
[ -n "$lineid" ] || continue
|
|
||||||
|
|
||||||
# -1 to match the line's uci config index number
|
|
||||||
# +loffset to match the correct number in channel driver
|
|
||||||
ldx=$((lineid-1+loffset))
|
|
||||||
|
|
||||||
lines="$lines$CHANNELNAME/$ldx&"
|
|
||||||
done
|
done
|
||||||
|
|
||||||
lines=$(escape_sed_substitution $lines)
|
lines=$(escape_sed_substitution $lines)
|
||||||
@@ -1795,6 +1789,7 @@ configure_tel()
|
|||||||
local fac
|
local fac
|
||||||
local echocancel
|
local echocancel
|
||||||
local hold_target_before_refer
|
local hold_target_before_refer
|
||||||
|
local calleridtype
|
||||||
|
|
||||||
config_get jbenable TEL jbenable
|
config_get jbenable TEL jbenable
|
||||||
config_get jbforce TEL jbforce
|
config_get jbforce TEL jbforce
|
||||||
@@ -1805,6 +1800,7 @@ configure_tel()
|
|||||||
config_get fac TEL fac
|
config_get fac TEL fac
|
||||||
config_get echocancel TEL echo_cancel
|
config_get echocancel TEL echo_cancel
|
||||||
config_get hold_target_before_refer TEL hold_target_before_refer
|
config_get hold_target_before_refer TEL hold_target_before_refer
|
||||||
|
config_get calleridtype TEL calleridtype
|
||||||
|
|
||||||
CHANNEL_FAC="$CHANNEL_FAC $fac"
|
CHANNEL_FAC="$CHANNEL_FAC $fac"
|
||||||
# Convert whitespace to commas
|
# Convert whitespace to commas
|
||||||
@@ -1823,6 +1819,12 @@ configure_tel()
|
|||||||
sed -i "s/|CHANNELS|/$(db get hw.board.VoicePorts)/" $WORKDIR/$LINENAME.tmp
|
sed -i "s/|CHANNELS|/$(db get hw.board.VoicePorts)/" $WORKDIR/$LINENAME.tmp
|
||||||
sed -i "s/|ECHOCANCEL|/$(getEchoCancellingValue $echocancel)/" $WORKDIR/$LINENAME.tmp
|
sed -i "s/|ECHOCANCEL|/$(getEchoCancellingValue $echocancel)/" $WORKDIR/$LINENAME.tmp
|
||||||
|
|
||||||
|
if [ -n "${calleridtype}" ] ; then
|
||||||
|
sed -i "s/^calleridtype *=.*/calleridtype = ${calleridtype}/g" $WORKDIR/$LINENAME.tmp
|
||||||
|
else
|
||||||
|
sed -i "/^calleridtype *=.*/d" $WORKDIR/$LINENAME.tmp
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$dtmfmode" == "compatibility" ] ; then
|
if [ "$dtmfmode" == "compatibility" ] ; then
|
||||||
dtmfcompatibility="1"
|
dtmfcompatibility="1"
|
||||||
else
|
else
|
||||||
@@ -2243,6 +2245,7 @@ reload_service() {
|
|||||||
# FXS channel module must be reloaded before sip module. Otherwise some attributes like
|
# FXS channel module must be reloaded before sip module. Otherwise some attributes like
|
||||||
# line's registration state which is updated by SIP module through callback might be
|
# line's registration state which is updated by SIP module through callback might be
|
||||||
# reset.
|
# reset.
|
||||||
|
asterisk -rx "config reload $ASTERISKDIR/indications.conf"
|
||||||
asterisk -rx "$(getChipVendor) reload"
|
asterisk -rx "$(getChipVendor) reload"
|
||||||
asterisk -rx "config reload $ASTERISKDIR/sip.conf"
|
asterisk -rx "config reload $ASTERISKDIR/sip.conf"
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ getBaseMAC() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getAllLines() {
|
getAllLines() {
|
||||||
echo "BRCM/0&BRCM/1&BRCM/2&BRCM/3&BRCM/4&BRCM/5&BRCM/6"
|
echo "BRCM/0&BRCM/1&BRCM/2&BRCM/3&BRCM/4&BRCM/5"
|
||||||
}
|
}
|
||||||
|
|
||||||
getLineIdx() {
|
getLineIdx() {
|
||||||
|
|||||||
@@ -28,12 +28,11 @@ getBaseMAC() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getAllLines() {
|
getAllLines() {
|
||||||
echo "TAPI/1&TAPI/2&TAPI/3&TAPI/4&TAPI/5&TAPI/6"
|
echo "TAPI/0&TAPI/1"
|
||||||
}
|
}
|
||||||
|
|
||||||
getLineIdx() {
|
getLineIdx() {
|
||||||
i=$1
|
echo $1
|
||||||
echo $((i+1))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getEchoCancellingValue() {
|
getEchoCancellingValue() {
|
||||||
@@ -52,5 +51,14 @@ getEchoCancellingValue() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
supportedCountries() {
|
supportedCountries() {
|
||||||
echo "ETSI:ETS"
|
echo "Austria:AUT:AT"
|
||||||
|
echo "Denmark:DNK:DK"
|
||||||
|
echo "Estonia:EST:EE"
|
||||||
|
echo "Germany:DEU:DE"
|
||||||
|
echo "Netherlands:NLD:NL"
|
||||||
|
echo "Norway:NOR:NO"
|
||||||
|
echo "Spain:ESP:ES"
|
||||||
|
echo "Sweden:SWE:SE"
|
||||||
|
echo "Switzerland:CHE:CH"
|
||||||
|
echo "United Kingdom:GBR:UK"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -137,8 +137,8 @@ case "$1" in
|
|||||||
json_add_int chanoffset 0
|
json_add_int chanoffset 0
|
||||||
;;
|
;;
|
||||||
"tapi")
|
"tapi")
|
||||||
json_add_int lineoffset 1
|
json_add_int lineoffset 0
|
||||||
json_add_int chanoffset -1
|
json_add_int chanoffset 0
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
# Error, unknown platform
|
# Error, unknown platform
|
||||||
|
|||||||
@@ -7,10 +7,10 @@ include $(TOPDIR)/rules.mk
|
|||||||
PKG_NAME:=wifilife
|
PKG_NAME:=wifilife
|
||||||
PKG_VERSION:=2.5.0
|
PKG_VERSION:=2.5.0
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||||
PKG_SOURCE_VERSION:=878ad93c0f1ad49bd187f776808e0b86402b2238
|
PKG_SOURCE_VERSION:=6506026c70944cba7611c3e0ffaec3255c73eb32
|
||||||
PKG_MAINTAINER:=Anjan Chanda <anjan.chanda@iopsys.eu>
|
PKG_MAINTAINER:=Anjan Chanda <anjan.chanda@iopsys.eu>
|
||||||
|
|
||||||
PKG_LICENSE:=PROPRIETARY
|
PKG_LICENSE:=PROPRIETARY IOPSYS
|
||||||
PKG_LICENSE_FILES:=LICENSE
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
|
||||||
ifeq ($(CONFIG_WIFILIFE_OPEN),y)
|
ifeq ($(CONFIG_WIFILIFE_OPEN),y)
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ PKG_NAME:=wifimngr
|
|||||||
PKG_VERSION:=2.4.0
|
PKG_VERSION:=2.4.0
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_VERSION:=c4063e9c5581fed6e75037d0b13698b7cb2d6c2a
|
PKG_SOURCE_VERSION:=0b44894794a2584c2ff4fd34a8f8aa85944cf8ab
|
||||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/wifimngr.git
|
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/wifimngr.git
|
||||||
PKG_MAINTAINER:=Anjan Chanda <anjan.chanda@iopsys.eu>
|
PKG_MAINTAINER:=Anjan Chanda <anjan.chanda@iopsys.eu>
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ PKG_NAME:=wifixd
|
|||||||
PKG_VERSION:=1.0.2
|
PKG_VERSION:=1.0.2
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_VERSION:=7aae246602af0df883ddefb83147010a457c2725
|
PKG_SOURCE_VERSION:=cd63143c262e079d4a782ccfa60111f342e42e3e
|
||||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/wifimngr.git
|
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/wifimngr.git
|
||||||
PKG_MAINTAINER:=Anjan Chanda <anjan.chanda@iopsys.eu>
|
PKG_MAINTAINER:=Anjan Chanda <anjan.chanda@iopsys.eu>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user