Initial commit

This commit is contained in:
Your Name
2026-04-23 17:07:55 +08:00
commit b7e39e063b
16725 changed files with 1625565 additions and 0 deletions
@@ -0,0 +1,14 @@
#!/bin/bash
set -e
ACCESS_PRIMARY="/sys/devices/platform/ahb/1e620000.spi/access_primary"
ACCESS_BACKUP="/sys/devices/platform/ahb/1e620000.spi/access_backup"
if [ -f "${ACCESS_PRIMARY}" ]; then
echo 0 > ${ACCESS_PRIMARY}
echo "Disable watchdog by access_primary."
elif [ -f "${ACCESS_BACKUP}" ]; then
echo 0 > ${ACCESS_BACKUP}
echo "Disable watchdog by access_backup."
fi
@@ -0,0 +1,10 @@
[Unit]
Description=Disable the watchdog
[Service]
Type=oneshot
ExecStart=/usr/bin/disable-wdt
ExecStart=bash -c "echo -1 > /proc/sys/kernel/panic"
[Install]
WantedBy=multi-user.target