Initial commit
This commit is contained in:
+30
@@ -0,0 +1,30 @@
|
||||
[
|
||||
{
|
||||
"Name": "presence-slot1",
|
||||
"LineName": "PRESENCE-SLOT1",
|
||||
"EventMon": "BOTH",
|
||||
"Continue": true,
|
||||
"Target": "obmc-ipmb-rescan-fru.service"
|
||||
},
|
||||
{
|
||||
"Name": "presence-slot2",
|
||||
"LineName": "PRESENCE-SLOT2",
|
||||
"EventMon": "BOTH",
|
||||
"Continue": true,
|
||||
"Target": "obmc-ipmb-rescan-fru.service"
|
||||
},
|
||||
{
|
||||
"Name": "presence-slot3",
|
||||
"LineName": "PRESENCE-SLOT3",
|
||||
"EventMon": "BOTH",
|
||||
"Continue": true,
|
||||
"Target": "obmc-ipmb-rescan-fru.service"
|
||||
},
|
||||
{
|
||||
"Name": "presence-slot4",
|
||||
"LineName": "PRESENCE-SLOT4",
|
||||
"EventMon": "BOTH",
|
||||
"Continue": true,
|
||||
"Target": "obmc-ipmb-rescan-fru.service"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
# Rescan the ipmb busses for slots fru.
|
||||
|
||||
DBUS_SERVICE="xyz.openbmc_project.Ipmb.FruDevice"
|
||||
DBUS_OBJECT="/xyz/openbmc_project/Ipmb/FruDevice"
|
||||
DBUS_INTERFACE="xyz.openbmc_project.Ipmb.FruDeviceManager"
|
||||
|
||||
busctl call $DBUS_SERVICE $DBUS_OBJECT $DBUS_INTERFACE ReScan
|
||||
@@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=ipmb based rescan the slots fru service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/libexec/phosphor-gpio-monitor/ipmb-rescan-fru.sh
|
||||
Reference in New Issue
Block a user