mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-05 09:54:06 +08:00
21 lines
409 B
Bash
21 lines
409 B
Bash
#!/bin/sh
|
|
[ ! -f "/usr/share/ucitrack/luci-app-syncdial.json" ] && {
|
|
cat > /usr/share/ucitrack/luci-app-syncdial.json << EEOF
|
|
{
|
|
"config": "syncdial",
|
|
"init": "syncdial"
|
|
}
|
|
EEOF
|
|
}
|
|
touch /etc/config/syncdial
|
|
|
|
uci -q batch <<-EOF >/dev/null
|
|
delete ucitrack.@syncdial[-1]
|
|
add ucitrack syncdial
|
|
set ucitrack.@syncdial[-1].exec='/bin/genwancfg'
|
|
commit ucitrack
|
|
EOF
|
|
|
|
rm -f /tmp/luci-indexcache
|
|
exit 0
|