From 763982b70eab3d416adbf82882bd0891b504ba49 Mon Sep 17 00:00:00 2001 From: paavaanan Date: Wed, 26 Sep 2018 11:44:09 +0530 Subject: [PATCH] [devices]: Dell-S6100/Z9100 depmod fixes (#2071) --- .../debian/platform-modules-s6100.install | 2 +- .../debian/platform-modules-s6100.postinst | 4 ++++ .../debian/platform-modules-z9100.install | 2 +- .../debian/platform-modules-z9100.postinst | 6 ++++++ 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/platform/broadcom/sonic-platform-modules-dell/debian/platform-modules-s6100.install b/platform/broadcom/sonic-platform-modules-dell/debian/platform-modules-s6100.install index 2e57c0a045e3..7d56aee6e2f7 100644 --- a/platform/broadcom/sonic-platform-modules-dell/debian/platform-modules-s6100.install +++ b/platform/broadcom/sonic-platform-modules-dell/debian/platform-modules-s6100.install @@ -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 +s6100/systemd/platform-modules-s6100.service etc/systemd/system diff --git a/platform/broadcom/sonic-platform-modules-dell/debian/platform-modules-s6100.postinst b/platform/broadcom/sonic-platform-modules-dell/debian/platform-modules-s6100.postinst index aeabe1abd27c..1c220633451d 100644 --- a/platform/broadcom/sonic-platform-modules-dell/debian/platform-modules-s6100.postinst +++ b/platform/broadcom/sonic-platform-modules-dell/debian/platform-modules-s6100.postinst @@ -4,4 +4,8 @@ systemctl enable fstrim.timer systemctl start fstrim.timer +# Enable Dell-S6100-platform-service +depmod -a +systemctl enable platform-modules-s6100.service +systemctl start platform-modules-s6100.service #DEBHELPER# diff --git a/platform/broadcom/sonic-platform-modules-dell/debian/platform-modules-z9100.install b/platform/broadcom/sonic-platform-modules-dell/debian/platform-modules-z9100.install index 8425d8fc7a0b..410dcf16ea1b 100644 --- a/platform/broadcom/sonic-platform-modules-dell/debian/platform-modules-z9100.install +++ b/platform/broadcom/sonic-platform-modules-dell/debian/platform-modules-z9100.install @@ -6,4 +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 +z9100/systemd/platform-modules-z9100.service etc/systemd/system diff --git a/platform/broadcom/sonic-platform-modules-dell/debian/platform-modules-z9100.postinst b/platform/broadcom/sonic-platform-modules-dell/debian/platform-modules-z9100.postinst index b11ae1f274c4..61039dcd70d3 100644 --- a/platform/broadcom/sonic-platform-modules-dell/debian/platform-modules-z9100.postinst +++ b/platform/broadcom/sonic-platform-modules-dell/debian/platform-modules-z9100.postinst @@ -4,4 +4,10 @@ systemctl enable fstrim.timer systemctl start fstrim.timer +# Enable Dell-Z9100-platform-service +depmod -a +systemctl enable platform-modules-z9100.service +systemctl start platform-modules-z9100.service + + #DEBHELPER#