mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-07-29 01:41:51 +08:00
16 lines
397 B
Bash
16 lines
397 B
Bash
#!/bin/sh
|
|
if [ ! -f /etc/config/taskplan ]; then
|
|
cat > /etc/config/taskplan << EOF
|
|
config global 'global'
|
|
option customscript ' '
|
|
option customscript2 ' '
|
|
|
|
EOF
|
|
fi
|
|
mkdir -p /etc/taskplan
|
|
touch /etc/taskplan/taskplan.log
|
|
chmod +x /usr/libexec/rpcd/luci.taskplan /etc/init.d/taskplan /etc/taskplan/taskplanrun /usr/bin/taskplanhandler
|
|
rm -rf /tmp/luci-modulecache /tmp/luci-indexcache*
|
|
|
|
exit 0
|