parent
2bafae38d5
commit
32a52a13df
9
device/celestica/x86_64-cel_e1031-r0/platform_reboot
Executable file
9
device/celestica/x86_64-cel_e1031-r0/platform_reboot
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
declare -r CPLD_SETREG_PATH="/sys/bus/platform/devices/e1031.smc/setreg"
|
||||
|
||||
sync ; sync
|
||||
umount -fa > /dev/null 2&>1
|
||||
|
||||
# Board level power cycle
|
||||
echo "0x0113 0xAA" > ${CPLD_SETREG_PATH}
|
8
device/celestica/x86_64-cel_e1031-r0/platform_update_reboot_cause
Executable file
8
device/celestica/x86_64-cel_e1031-r0/platform_update_reboot_cause
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
REBOOT_USER=$(logname)
|
||||
REBOOT_TIME=$(date)
|
||||
declare -r REBOOT_CAUSE_FILE="/host/reboot-cause/reboot-cause.txt"
|
||||
|
||||
echo "User issued 'reboot' with platform-specific command [User: ${REBOOT_USER}, Time: ${REBOOT_TIME}]" > ${REBOOT_CAUSE_FILE}
|
||||
sync
|
Loading…
Reference in New Issue
Block a user