Command to reproduce:
grep -L '^maintainer="[^"]\+"$' device/{main,community,testing,downstream}/*/APKBUILD | sed 's/\/APKBUILD//' | xargs -i sh -c 'sed -i "1s;^;# Archived: unmaintained\n;" {}/APKBUILD && mv {} device/archived/ && git add {} && git add device/archived/'
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8883>
19 lines
291 B
Bash
19 lines
291 B
Bash
#!/bin/sh
|
|
|
|
watchdog_kick() {
|
|
while true; do
|
|
for wd in /dev/watchdog*; do
|
|
[ -c $wd ] && echo X > $wd
|
|
done
|
|
|
|
# /usr/share/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 &
|