op-packages/luci-app-powersupply/root/etc/uci-defaults/powersupply
github-actions[bot] 263d407c11 🎄 Sync 2026-04-23 03:14:31
2026-04-23 03:14:31 +08:00

20 lines
398 B
Bash

#!/bin/sh
[ ! -f "/usr/share/ucitrack/luci-app-powersupply.json" ] && {
cat > /usr/share/ucitrack/luci-app-powersupply.json << EEOF
{
"config": "powersupply",
"init": "powersupply"
}
EEOF
}
uci -q batch <<-EOF >/dev/null
delete ucitrack.@powersupply[-1]
add ucitrack powersupply
set ucitrack.@powersupply[-1].init=powersupply
commit ucitrack
EOF
rm -f /tmp/luci-indexcache
exit 0