pmaports/device/device-nokia-rm-696/initfs-hook.sh
Filip Matijević 2cc6ae4a9d Add basic support for Nokia N9 (#1101)
Also added the watchdog-kick package:
Some devices (namely Nokia N9/950) use more than one watchdog, and
watchdog-kick package kicks all of /dev/watchdogs? every 10 seconds so
they don't reset the device
2018-01-09 16:42:55 +00:00

18 lines
298 B
Bash

#!/bin/sh
watchdog_kick() {
while true; do
for wd in /dev/watchdog*; do
[ -c $wd ] && echo X > $wd
done
# /etc/postmarketos-mkinitfs/hooks/00-device-nokia-rm696.sh: line 12: sleep: not found
if [ -f /bin/sleep ]; then
/bin/sleep 2s
else
return 0
fi
done
}
watchdog_kick &