mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2025-12-10 07:44:41 +01:00
Ticket refs #945: TR-069 Logging for activation and firmware updated completion (fixes)
This commit is contained in:
parent
9abf61b7c5
commit
aa1db4ac58
1 changed files with 2 additions and 1 deletions
|
|
@ -92,10 +92,11 @@ icwmp_apply_firmware()
|
|||
local fault_code="9000"
|
||||
|
||||
sync
|
||||
killall dropbear uhttpd; sleep 1; uci set cwmp.cpe.exec_download=1; uci commit; sleep 1; /sbin/sysupgrade /tmp/firmware_upgrade_image_last_valid
|
||||
killall dropbear uhttpd; sleep 1; uci set cwmp.cpe.exec_download=1; uci commit; sllep 1; /sbin/sysupgrade /tmp/firmware_upgrade_image_last_valid
|
||||
if [ "$?" != "0" ];then
|
||||
let fault_code=$fault_code+$FAULT_CPE_DOWNLOAD_FAIL_FILE_CORRUPTED
|
||||
icwmp_fault_output "" "$fault_code"
|
||||
uci set cwmp.cpe.exec_download=0; uci commit;
|
||||
else
|
||||
icwmp_fault_output "" "$FAULT_CPE_NO_FAULT"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue