Initial commit
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user