Ticket refs #945: TR-069 Logging for activation and firmware updated completion (fixes)

This commit is contained in:
Omar Kallel 2019-10-01 11:38:10 +01:00
parent 9abf61b7c5
commit aa1db4ac58

View file

@ -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