mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-01-14 12:23:12 +00:00
Compare commits
1 Commits
emctrl_exa
...
simplify_c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
db594e2829 |
@@ -8,11 +8,11 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=icwmp
|
PKG_NAME:=icwmp
|
||||||
PKG_VERSION:=8.2.8-2021-11-13
|
PKG_VERSION:=8.2.9-2021-11-15
|
||||||
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:=1b5b3b3f8d92c5a18f20dba512755acfc9bcc953
|
PKG_SOURCE_VERSION:=64310c6cf55128f555c354c1743c6814576db3a6
|
||||||
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_MIRROR_HASH:=skip
|
PKG_MIRROR_HASH:=skip
|
||||||
|
|||||||
@@ -200,47 +200,40 @@ validate_acs_url() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
start_service() {
|
start_service() {
|
||||||
if [ ! -f /tmp/.icwmpd_boot ]; then
|
[ -f /sbin/netifd ] && log "Waiting for Network to be started ..." && ubus -t 5 wait_for network.interface
|
||||||
touch /etc/icwmpd/.icwmpd_boot
|
[ -f /usr/sbin/dnsmasq ] && log "Waiting for DNS Proxy to be started ..." && ubus -t 5 wait_for dnsmasq
|
||||||
touch /tmp/.icwmpd_boot
|
[ -f /etc/config/dhcp ] && log "Waiting for DNS Server(s) ..." && wait_for_resolvfile 20
|
||||||
else
|
|
||||||
[ -f /sbin/netifd ] && log "Waiting for Network to be started ..." && ubus -t 5 wait_for network.interface
|
log "Waiting for usp.raw to be started"
|
||||||
[ -f /etc/config/wireless ] && log "Waiting for WiFi to be started ..." && ubus -t 5 wait_for network.wireless
|
ubus wait_for usp.raw
|
||||||
[ -f /usr/sbin/dnsmasq ] && log "Waiting for DNS Proxy to be started ..." && ubus -t 5 wait_for dnsmasq
|
|
||||||
[ -f /etc/config/dhcp ] && log "Waiting for DNS Server(s) ..." && wait_for_resolvfile 20
|
validate_defaults || {
|
||||||
[ -f /usr/sbin/asterisk ] && log "Waiting for Voice to be started ..." && ubus -t 5 wait_for asterisk
|
log "Validation of defaults failed"
|
||||||
|
return 1;
|
||||||
log "Waiting for usp.raw to be started"
|
}
|
||||||
ubus wait_for usp.raw
|
|
||||||
|
# Set wan interface if not configured
|
||||||
validate_defaults || {
|
set_wan_interface
|
||||||
log "Validation of defaults failed"
|
|
||||||
return 1;
|
# Set dhcp option 43 if dhcp discovery enabled
|
||||||
}
|
if [ "${dhcp_discovery}" == "enable" -o "${dhcp_discovery}" == "1" ]; then
|
||||||
|
enable_dhcp_option43 $default_wan_interface
|
||||||
# Set wan interface if not configured
|
wait_for_option43 20
|
||||||
set_wan_interface
|
|
||||||
|
|
||||||
# Set dhcp option 43 if dhcp discovery enabled
|
|
||||||
if [ "${dhcp_discovery}" == "enable" -o "${dhcp_discovery}" == "1" ]; then
|
|
||||||
enable_dhcp_option43 $default_wan_interface
|
|
||||||
wait_for_option43 20
|
|
||||||
fi
|
|
||||||
|
|
||||||
validate_acs_url || {
|
|
||||||
log "Validation of ACS URL failed"
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
copy_cwmp_etc_files_to_varstate
|
|
||||||
procd_open_instance icwmp
|
|
||||||
procd_set_param command "$PROG"
|
|
||||||
procd_set_param respawn \
|
|
||||||
${respawn_threshold:-5} \
|
|
||||||
${respawn_timeout:-10} ${respawn_retry:-3}
|
|
||||||
|
|
||||||
procd_close_instance
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
validate_acs_url || {
|
||||||
|
log "Validation of ACS URL failed"
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
copy_cwmp_etc_files_to_varstate
|
||||||
|
procd_open_instance icwmp
|
||||||
|
procd_set_param command "$PROG"
|
||||||
|
procd_set_param respawn \
|
||||||
|
${respawn_threshold:-5} \
|
||||||
|
${respawn_timeout:-10} ${respawn_retry:-3}
|
||||||
|
|
||||||
|
procd_close_instance
|
||||||
}
|
}
|
||||||
|
|
||||||
stop_service()
|
stop_service()
|
||||||
|
|||||||
Reference in New Issue
Block a user