Initial commit
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
# Usage of this utility
|
||||
echo "Trigger soft off the host."
|
||||
/usr/sbin/ampere_power_util.sh mb soft_off
|
||||
exit $?;
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Ampere Soft power off of the host
|
||||
Wants=obmc-host-stop-pre@0.target
|
||||
Before=obmc-host-stop-pre@0.target
|
||||
Conflicts=obmc-host-start@0.target
|
||||
ConditionPathExists=!/run/openbmc/host@0-request
|
||||
ConditionPathExists=!/lib/systemd/system/pldmSoftPowerOff.service
|
||||
|
||||
[Service]
|
||||
Restart=no
|
||||
ExecStart=/usr/bin/phosphor-softpoweroff
|
||||
SyslogIdentifier=phosphor-softpoweroff
|
||||
Type=oneshot
|
||||
Reference in New Issue
Block a user