pmaports/device/testing/device-nokia-n9/initfs-hook.sh
Oliver Smith 64035ac463
device/*: move to device/testing/* (!1063)
Prepare for better device categorization by moving everything to testing
subdir first.

[skip-ci]: chicken-egg problem: passing pmaports CI depends on pmbootstrap MR
				depends on this MR

Related: postmarketos#16
2020-03-14 08:35:32 +01: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 &