Initial commit

This commit is contained in:
Your Name
2026-04-23 17:07:55 +08:00
commit b7e39e063b
16725 changed files with 1625565 additions and 0 deletions
@@ -0,0 +1,20 @@
#!/bin/sh
# Toggle the state of identify LED Group
SERVICE="xyz.openbmc_project.LED.GroupManager"
INTERFACE="xyz.openbmc_project.Led.Group"
PROPERTY="Asserted"
# Get current state
object=$(busctl tree $SERVICE --list | grep identify)
state=$(busctl get-property $SERVICE "$object" $INTERFACE $PROPERTY \
| awk '{print $NF;}')
if [ "$state" = "false" ]; then
target='true'
else
target='false'
fi
# Set target state
busctl set-property $SERVICE "$object" $INTERFACE $PROPERTY b $target