Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| docs:guide-user:advanced:sysupgrade_extras [2023/11/30 19:35] – [Instructions] vgaetera | docs:guide-user:advanced:sysupgrade_extras [2023/12/01 01:36] – [Instructions] minimize write operations vgaetera | ||
|---|---|---|---|
| Line 47: | Line 47: | ||
| local SYSUP_TYPE=" | local SYSUP_TYPE=" | ||
| local SYSUP_EFI=" | local SYSUP_EFI=" | ||
| - | local SYSUP_JSON=" | ||
| local SYSUP_IMG=" | local SYSUP_IMG=" | ||
| sysupgrade " | sysupgrade " | ||
| Line 102: | Line 101: | ||
| } | } | ||
| - | sysupgrade_json() { | + | sysupgrade_img() { |
| wget -O - " | wget -O - " | ||
| - | | jsonfilter -e " | + | | jsonfilter -e " |
| - | [' | + | [' |
| - | && | + | && |
| - | } | + | |
| - | + | ||
| - | sysupgrade_img() { | + | |
| - | jsonfilter -e "$[' | + | |
| - | ${SYSUP_JSON} | + | |
| - | EOI | + | |
| } | } | ||
| Line 119: | Line 112: | ||
| local SVC_STATE | local SVC_STATE | ||
| for SVC_NAME in ${SVC_NAME} | for SVC_NAME in ${SVC_NAME} | ||
| - | do if service " | + | do if command |
| then SVC_STATE=" | then SVC_STATE=" | ||
| else SVC_STATE=" | else SVC_STATE=" | ||
| Line 128: | Line 121: | ||
| del_list system.service.disable=' | del_list system.service.disable=' | ||
| add_list system.service.' | add_list system.service.' | ||
| - | commit system | ||
| EOI | EOI | ||
| done | done | ||
| + | uci commit system | ||
| } | } | ||
| Line 139: | Line 132: | ||
| do SVC_NAME=" | do SVC_NAME=" | ||
| for SVC_NAME in ${SVC_NAME} | for SVC_NAME in ${SVC_NAME} | ||
| - | do service " | + | do command |
| done | done | ||
| done | done | ||