[openwrt/temper] Also restart cron
This commit is contained in:
parent
9ca5f9a965
commit
ed944b5272
1 changed files with 2 additions and 0 deletions
|
@ -29,8 +29,10 @@ chmod a+rx /usr/bin/temper.py
|
|||
|
||||
if ! grep -q temper /etc/crontabs/root; then
|
||||
echo "*/5 * * * * /usr/bin/temper.py | awk '{ print $7 " " $8 }' > /www/temperature.txt" >> /etc/crontabs/root
|
||||
/etc/init.d/cron restart
|
||||
fi
|
||||
|
||||
|
||||
EOF
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Reference in a new issue