diff options
Diffstat (limited to 'meta-quanta/meta-gbs/recipes-x86/chassis/x86-power-control')
-rw-r--r-- | meta-quanta/meta-gbs/recipes-x86/chassis/x86-power-control/chassis-system-reset.service | 10 | ||||
-rw-r--r-- | meta-quanta/meta-gbs/recipes-x86/chassis/x86-power-control/power-config-host0.json | 8 |
2 files changed, 18 insertions, 0 deletions
diff --git a/meta-quanta/meta-gbs/recipes-x86/chassis/x86-power-control/chassis-system-reset.service b/meta-quanta/meta-gbs/recipes-x86/chassis/x86-power-control/chassis-system-reset.service new file mode 100644 index 000000000..668195482 --- /dev/null +++ b/meta-quanta/meta-gbs/recipes-x86/chassis/x86-power-control/chassis-system-reset.service @@ -0,0 +1,10 @@ +[Unit] +Description=System unit to hard reset or system reset chassis + +[Service] +Type=oneshot +RemainAfterExit=no +ExecStart=/usr/bin/tray_powercycle.sh + +[Install] +WantedBy=chassis-system-reset.target diff --git a/meta-quanta/meta-gbs/recipes-x86/chassis/x86-power-control/power-config-host0.json b/meta-quanta/meta-gbs/recipes-x86/chassis/x86-power-control/power-config-host0.json new file mode 100644 index 000000000..d9d3ed109 --- /dev/null +++ b/meta-quanta/meta-gbs/recipes-x86/chassis/x86-power-control/power-config-host0.json @@ -0,0 +1,8 @@ +{ + "PostComplete": "POST_COMPLETE", + "PwrButton": "POWER_BUTTON", + "PwrOK": "PS_PWROK", + "PwrOut": "POWER_OUT", + "RstButton": "RESET_BUTTON", + "RstOut": "RESET_OUT" +} |