b180a0242f3ca9b9778ba4434c737d47cef46d3a
11 config_get sysfs
${cfg} sysfs
12 config_get name
${cfg} name
14 [ -z "${sysfs}" ] && return
16 for tuple
in ${tuples}; do
21 new_sysfs
=$
(echo ${sysfs} | sed "s/${old}/${new}/")
23 [ "${new_sysfs}" = "${sysfs}" ] && continue
25 uci set system.${cfg}.sysfs="${new_sysfs}"
27 logger -t led-migration "sysfs option of LED
\"${name}\" updated to
${new_sysfs}"
33 config_foreach migrate_led_sysfs led "$@
"
38 [ -n "$
(uci changes
${realm})" ] && uci -q commit ${realm}