blob: 38728b512a8446a47dc90cd064eeef23cd3ffa04 (
plain)
1
2
3
4
5
6
7
8
|
#!/bin/sh
if [[ `cat /proc/cmdline` =~ "resetreason=0x11" ]]
then
busctl set-property xyz.openbmc_project.Settings /xyz/openbmc_project/control/host0/ac_boot xyz.openbmc_project.Common.ACBoot ACBoot s "True"
else
busctl set-property xyz.openbmc_project.Settings /xyz/openbmc_project/control/host0/ac_boot xyz.openbmc_project.Common.ACBoot ACBoot s "False"
fi
|