[openwrt/temper] Also restart cron

This commit is contained in:
Nico Schottelius 2020-12-03 20:25:20 +01:00
parent 9ca5f9a965
commit ed944b5272

View file

@ -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