mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-10 19:27:37 +01:00
icwmp: remove unnecessary parts from init script
This commit is contained in:
parent
78700807de
commit
dd22c6ca12
1 changed files with 4 additions and 12 deletions
|
|
@ -10,7 +10,6 @@ STOP=10
|
|||
|
||||
USE_PROCD=1
|
||||
PROG="/usr/sbin/icwmpd"
|
||||
PROG098="/usr/sbin/icwmp_tr098d"
|
||||
|
||||
EXTRA_COMMANDS="notify"
|
||||
EXTRA_HELP=" start [GetRPCMethods] Start icwmpd service and send GetRPCMethods"
|
||||
|
|
@ -196,11 +195,7 @@ start_service() {
|
|||
get_acs_url
|
||||
|
||||
procd_open_instance
|
||||
if [ "$(uci -q get cwmp.cpe.datamodel)" == "tr098" ]; then
|
||||
procd_set_param command "$PROG098"
|
||||
else
|
||||
procd_set_param command "$PROG"
|
||||
fi
|
||||
procd_set_param command "$PROG"
|
||||
if [ "$1" = "GetRPCMethods" ];then
|
||||
procd_append_param command -g
|
||||
elif [ -f /etc/icwmpd/.icwmpd_boot ]; then
|
||||
|
|
@ -208,11 +203,9 @@ start_service() {
|
|||
fi
|
||||
procd_set_param respawn "3" "7" "0"
|
||||
procd_close_instance
|
||||
procd_open_instance
|
||||
if [ "$(uci -q get cwmp.cpe.notification)" == "1" ]; then
|
||||
procd_append_param command "/usr/sbin/icwmp_notifd"
|
||||
fi
|
||||
procd_close_instance
|
||||
#procd_open_instance
|
||||
#[ "$(uci -q get cwmp.cpe.notification)" == "1" ] && procd_append_param command "/usr/sbin/icwmp_notifd"
|
||||
#procd_close_instance
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
@ -229,7 +222,6 @@ service_triggers() {
|
|||
procd_add_config_trigger "config.change" "cwmp" /etc/init.d/icwmpd reload
|
||||
if [ "$(uci -q get cwmp.cpe.notification)" == "1" ]; then
|
||||
for conf in $(ls /etc/config/); do
|
||||
[ "$conf" == "cwmp" ] && continue
|
||||
procd_add_config_trigger "config.change" "$conf" /etc/init.d/icwmpd notify
|
||||
done
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue