Dell platform modules for S6100/Z9100 is added with systemd support (#2026)
This commit is contained in:
parent
48f3b6c008
commit
6af462ac53
@ -6,4 +6,4 @@ common/fstrim.timer etc/systemd/system
|
|||||||
common/fstrim.service etc/systemd/system
|
common/fstrim.service etc/systemd/system
|
||||||
s6100/scripts/platform_sensors.py usr/local/bin
|
s6100/scripts/platform_sensors.py usr/local/bin
|
||||||
s6100/scripts/sensors usr/bin
|
s6100/scripts/sensors usr/bin
|
||||||
|
s6100/systemd/platform-modules-s6100.service etc/systemd/system/multi-user.target.wants
|
||||||
|
@ -6,3 +6,4 @@ common/fstrim.service etc/systemd/system
|
|||||||
z9100/scripts/platform_sensors.py usr/local/bin
|
z9100/scripts/platform_sensors.py usr/local/bin
|
||||||
z9100/scripts/sensors usr/bin
|
z9100/scripts/sensors usr/bin
|
||||||
z9100/cfg/z9100-modules.conf etc/modules-load.d
|
z9100/cfg/z9100-modules.conf etc/modules-load.d
|
||||||
|
z9100/systemd/platform-modules-z9100.service etc/systemd/system/multi-user.target.wants
|
||||||
|
@ -0,0 +1,14 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Dell S6100 Platform modules
|
||||||
|
Before=pmon.service
|
||||||
|
DefaultDependencies=no
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStartPre=/usr/local/bin/iom_power_on.sh
|
||||||
|
ExecStart=/usr/local/bin/s6100_platform.sh init
|
||||||
|
ExecStop=/usr/local/bin/s6100_platform.sh deinit
|
||||||
|
RemainAfterExit=yes
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
@ -16,7 +16,7 @@ Z9100_MAX_FAN_TRAYS = 5
|
|||||||
Z9100_MAX_PSUS = 2
|
Z9100_MAX_PSUS = 2
|
||||||
S6100_MAX_IOMS = 4
|
S6100_MAX_IOMS = 4
|
||||||
|
|
||||||
MAILBOX_DIR = "/sys/devices/platform/SMF.512/hwmon/hwmon1"
|
MAILBOX_DIR = "/sys/devices/platform/SMF.512/hwmon/hwmon0"
|
||||||
|
|
||||||
# Get a mailbox register
|
# Get a mailbox register
|
||||||
|
|
||||||
@ -42,10 +42,10 @@ def get_pmc_register(reg_name):
|
|||||||
logging.basicConfig(level=logging.DEBUG)
|
logging.basicConfig(level=logging.DEBUG)
|
||||||
|
|
||||||
if (os.path.isdir(MAILBOX_DIR)):
|
if (os.path.isdir(MAILBOX_DIR)):
|
||||||
print 'dell-s6100-lpc'
|
print 'dell-z9100-lpc'
|
||||||
print 'Adapter: S6100 Platform Management Controller'
|
print 'Adapter: Z9100 Platform Management Controller'
|
||||||
else:
|
else:
|
||||||
logging.error('S6100 Platform Management Controller module not loaded !')
|
logging.error('Z9100 Platform Management Controller module not loaded !')
|
||||||
# sys.exit(0)
|
# sys.exit(0)
|
||||||
|
|
||||||
# Print the information for temperature sensors
|
# Print the information for temperature sensors
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Dell Z9100 Platform modules
|
||||||
|
Before=pmon.service
|
||||||
|
DefaultDependencies=no
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/usr/local/bin/z9100_platform.sh init
|
||||||
|
ExecStop=/usr/local/bin/z9100_platform.sh deinit
|
||||||
|
RemainAfterExit=yes
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Reference in New Issue
Block a user