13 lines
321 B
Bash
Executable File
13 lines
321 B
Bash
Executable File
#!/bin/bash
|
|
|
|
systemctl stop nokia-watchdog.service
|
|
sleep 2
|
|
echo "w" > /dev/watchdog
|
|
kick_date=`date -u`
|
|
echo "last watchdog kick $kick_date" > /var/log/nokia-watchdog-last.log
|
|
rm -f /sys/firmware/efi/efivars/dump-*
|
|
touch /etc/opt/srlinux/devmgr_reboot_cause.done
|
|
rm -f /etc/opt/srlinux/reboot-cause.txt
|
|
sync
|
|
/sbin/reboot
|