diff options
Diffstat (limited to 'meta-openpower/common/recipes-phosphor/occ/openpower-occ-control/occ-active.sh')
-rwxr-xr-x | meta-openpower/common/recipes-phosphor/occ/openpower-occ-control/occ-active.sh | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/meta-openpower/common/recipes-phosphor/occ/openpower-occ-control/occ-active.sh b/meta-openpower/common/recipes-phosphor/occ/openpower-occ-control/occ-active.sh deleted file mode 100755 index a6097e527..000000000 --- a/meta-openpower/common/recipes-phosphor/occ/openpower-occ-control/occ-active.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh -# set and unset occ active for all occ's in system - -if [ "$1" == "disable" ]; then - value='false' -elif [ "$1" == "enable" ]; then - value='true' -else - echo "Usage: occ-active.sh [argument]" - echo " enable - set occ's to active state" - echo " disable - set occ's to inactive state" - exit -1 -fi - -OCC_CONTROL_SERVICE="org.open_power.OCC.Control" - -busctl tree $OCC_CONTROL_SERVICE --list | grep occ | xargs -r -n1 -I{} \ - busctl set-property $OCC_CONTROL_SERVICE {} org.open_power.OCC.Status \ - OccActive b $value -exit 0 |