mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-09-10 18:34:18 +08:00
25 lines
506 B
Bash
25 lines
506 B
Bash
#!/bin/sh
|
|
[ ! -f "/usr/share/ucitrack/luci-app-clouddrive2.json" ] && {
|
|
cat > /usr/share/ucitrack/luci-app-clouddrive2.json << EEOF
|
|
{
|
|
"config": "clouddrive2",
|
|
"init": "clouddrive2"
|
|
}
|
|
EEOF
|
|
}
|
|
|
|
uci -q batch <<-EOF >/dev/null
|
|
delete ucitrack.@clouddrive2[-1]
|
|
add ucitrack clouddrive2
|
|
set ucitrack.@clouddrive2[-1].init=clouddrive2
|
|
commit ucitrack
|
|
EOF
|
|
|
|
mkdir -p /lib/upgrade/keep.d
|
|
cat > "/lib/upgrade/keep.d/luci-clouddrive2" <<-EOF
|
|
/Waytech/CloudDrive2/
|
|
EOF
|
|
|
|
rm -f /tmp/luci-indexcache
|
|
exit 0
|