small-package/luci-app-lucky/root/etc/uci-defaults/luci-lucky

12 lines
290 B
Plaintext
Raw Normal View History

2023-01-31 01:08:57 +08:00
#!/bin/sh
uci -q batch <<-EOF >/dev/null
delete ucitrack.@lucky[-1]
add ucitrack lucky
set ucitrack.@lucky[-1].init=lucky
commit ucitrack
EOF
2023-11-15 09:14:36 +08:00
[[ -f /etc/config/lucky ]] || echo "config lucky 'lucky' " > /etc/config/lucky
2023-01-31 01:08:57 +08:00
rm -rf /tmp/luci*
exit 0