d4ca86bf9d
1) Update Nokia-7215-A1 platform to address UT and OC test failures 2) Enable watchdog service 3) EZB files for SAI upgrade
14 lines
306 B
Bash
Executable File
14 lines
306 B
Bash
Executable File
#!/bin/bash
|
|
|
|
function SafeReboot() {
|
|
sync ; sync
|
|
sudo umount -fa > /dev/null 2&>1
|
|
|
|
# Turn off watchdog monitor gpio for correct reboot-cause
|
|
sudo echo 1 > /sys/class/gpio/gpio41/value
|
|
cat /sys/bus/i2c/devices/0-0041/last_reset_cause > /dev/null 2&>1
|
|
exec /sbin/reboot
|
|
}
|
|
|
|
SafeReboot
|