Skip to content

Commit

Permalink
Dell platform modules for S6100/Z9100 is added with systemd support (s…
Browse files Browse the repository at this point in the history
  • Loading branch information
paavaanan authored and lguohan committed Sep 7, 2018
1 parent 48f3b6c commit 6af462a
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ common/fstrim.timer etc/systemd/system
common/fstrim.service etc/systemd/system
s6100/scripts/platform_sensors.py usr/local/bin
s6100/scripts/sensors usr/bin

s6100/systemd/platform-modules-s6100.service etc/systemd/system/multi-user.target.wants
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ common/fstrim.service etc/systemd/system
z9100/scripts/platform_sensors.py usr/local/bin
z9100/scripts/sensors usr/bin
z9100/cfg/z9100-modules.conf etc/modules-load.d
z9100/systemd/platform-modules-z9100.service etc/systemd/system/multi-user.target.wants
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
Z9100_MAX_PSUS = 2
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

Expand All @@ -42,10 +42,10 @@ def get_pmc_register(reg_name):
logging.basicConfig(level=logging.DEBUG)

if (os.path.isdir(MAILBOX_DIR)):
print 'dell-s6100-lpc'
print 'Adapter: S6100 Platform Management Controller'
print 'dell-z9100-lpc'
print 'Adapter: Z9100 Platform Management Controller'
else:
logging.error('S6100 Platform Management Controller module not loaded !')
logging.error('Z9100 Platform Management Controller module not loaded !')
# sys.exit(0)

# Print the information for temperature sensors
Expand Down
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6af462a

Please sign in to comment.