Files
openwrt_packages/luci-app-lucky/root/etc/uci-defaults/66_luci-lucky
2025-11-02 14:26:26 +08:00

14 lines
317 B
Bash

#!/bin/sh
uci -q batch <<-EOF >/dev/null
delete ucitrack.@lucky[-1]
add ucitrack lucky
set ucitrack.@lucky[-1].init=lucky
commit ucitrack
EOF
chmod +x /usr/bin/luckyarch
rm -f /tmp/luci-indexcache* 2>/dev/null
rm -f /tmp/luci-modulecache/* 2>/dev/null # 针对OpenWrt 21.02+
rm -f /tmp/luci-indexcache
return 0