diff --git a/platform/barefoot/sonic-platform-modules-ingrasys/debian/sonic-platform-ingrasys-s9180-32x.dirs b/platform/barefoot/sonic-platform-modules-ingrasys/debian/sonic-platform-ingrasys-s9180-32x.dirs deleted file mode 100644 index 401d79eb79b8..000000000000 --- a/platform/barefoot/sonic-platform-modules-ingrasys/debian/sonic-platform-ingrasys-s9180-32x.dirs +++ /dev/null @@ -1,4 +0,0 @@ -usr/sbin -lib/systemd/system -etc/ -etc/init.d/ \ No newline at end of file diff --git a/platform/barefoot/sonic-platform-modules-ingrasys/debian/sonic-platform-ingrasys-s9180-32x.install b/platform/barefoot/sonic-platform-modules-ingrasys/debian/sonic-platform-ingrasys-s9180-32x.install deleted file mode 100644 index 99bda5d123ae..000000000000 --- a/platform/barefoot/sonic-platform-modules-ingrasys/debian/sonic-platform-ingrasys-s9180-32x.install +++ /dev/null @@ -1,4 +0,0 @@ -lib/systemd/ -usr/sbin/ -etc/ -etc/init.d/ diff --git a/platform/barefoot/sonic-platform-modules-ingrasys/debian/sonic-platform-ingrasys-s9180-32x.postinst b/platform/barefoot/sonic-platform-modules-ingrasys/debian/sonic-platform-ingrasys-s9180-32x.postinst deleted file mode 100644 index 38e5cac148c4..000000000000 --- a/platform/barefoot/sonic-platform-modules-ingrasys/debian/sonic-platform-ingrasys-s9180-32x.postinst +++ /dev/null @@ -1,57 +0,0 @@ -# Automatically added by dh_systemd_enable -# This will only remove masks created by d-s-h on package removal. -deb-systemd-helper unmask s9180-32x-monitor.service >/dev/null || true -deb-systemd-helper unmask bfn.service >/dev/null || true -deb-systemd-helper unmask qsfp-monitor.service >/dev/null || true -# Generate kernel modules.dep and map files for add eeprom_mb. -depmod -a || true -# was-enabled defaults to true, so new installations run enable. -if deb-systemd-helper --quiet was-enabled s9180-32x-monitor.service; then - # Enables the unit on first installation, creates new - # symlinks on upgrades if the unit file has changed. - deb-systemd-helper enable s9180-32x-monitor.service >/dev/null || true -else - # Update the statefile to add new symlinks (if any), which need to be - # cleaned up on purge. Also remove old symlinks. - deb-systemd-helper update-state s9180-32x-monitor.service >/dev/null || true -fi -if deb-systemd-helper --quiet was-enabled bfn.service; then - # Enables the unit on first installation, creates new - # symlinks on upgrades if the unit file has changed. - deb-systemd-helper enable bfn.service >/dev/null || true -else - # Update the statefile to add new symlinks (if any), which need to be - # cleaned up on purge. Also remove old symlinks. - deb-systemd-helper update-state bfn.service >/dev/null || true -fi -if deb-systemd-helper --quiet was-enabled qsfp-monitor.service; then - # Enables the unit on first installation, creates new - # symlinks on upgrades if the unit file has changed. - deb-systemd-helper enable qsfp-monitor.service >/dev/null || true -else - # Update the statefile to add new symlinks (if any), which need to be - # cleaned up on purge. Also remove old symlinks. - deb-systemd-helper update-state qsfp-monitor.service >/dev/null || true -fi -# End automatically added section -# Automatically added by dh_installinit -if [ -x "/etc/init.d/s9180-32x-monitor" ]; then - update-rc.d s9180-32x-monitor defaults >/dev/null - invoke-rc.d s9180-32x-monitor start || exit $? -fi -if [ -x "/etc/init.d/qsfp-monitor" ]; then - update-rc.d qsfp-monitor defaults >/dev/null - invoke-rc.d qsfp-monitor start || exit $? -fi -if [ -x "/etc/init.d/bfn" ]; then - invoke-rc.d bfn start || exit $? -fi -# End automatically added section -# Automatically added by dh_systemd_start -if [ -d /run/systemd/system ]; then - systemctl --system daemon-reload >/dev/null || true - deb-systemd-invoke start s9180-32x-monitor.service >/dev/null || true - deb-systemd-invoke start qsfp-monitor.service >/dev/null || true - deb-systemd-invoke start bfn.service >/dev/null || true -fi -# End automatically added section diff --git a/platform/barefoot/sonic-platform-modules-ingrasys/debian/sonic-platform-ingrasys-s9180-32x.postrm b/platform/barefoot/sonic-platform-modules-ingrasys/debian/sonic-platform-ingrasys-s9180-32x.postrm deleted file mode 100644 index 19c6bcb2945f..000000000000 --- a/platform/barefoot/sonic-platform-modules-ingrasys/debian/sonic-platform-ingrasys-s9180-32x.postrm +++ /dev/null @@ -1,42 +0,0 @@ -# Automatically added by dh_systemd_start -if [ -d /run/systemd/system ]; then - systemctl --system daemon-reload >/dev/null || true - fi -# End automatically added section -# Automatically added by dh_installinit -if [ "$1" = "purge" ] ; then - update-rc.d s9180-32x-monitor remove >/dev/null - update-rc.d bfn remove >/dev/null - update-rc.d qsfp-monitor remove >/dev/null -fi - - -# In case this system is running systemd, we make systemd reload the unit files -# to pick up changes. -if [ -d /run/systemd/system ] ; then - systemctl --system daemon-reload >/dev/null || true -fi -# End automatically added section -# Automatically added by dh_systemd_enable -if [ "$1" = "remove" ]; then - if [ -x "/usr/bin/deb-systemd-helper" ]; then - deb-systemd-helper mask s9180-32x-monitor.service >/dev/null - deb-systemd-helper mask bfn.service >/dev/null - deb-systemd-helper mask qsfp-monitor.service >/dev/null - fi -fi - -if [ "$1" = "purge" ]; then - if [ -x "/usr/bin/deb-systemd-helper" ]; then - deb-systemd-helper purge s9180-32x-monitor.service >/dev/null - deb-systemd-helper unmask s9180-32x-monitor.service >/dev/null - deb-systemd-helper purge bfn.service >/dev/null - deb-systemd-helper unmask bfn.service >/dev/null - deb-systemd-helper purge qsfp-monitor.service >/dev/null - deb-systemd-helper unmask qsfp-monitor.service >/dev/null - fi -fi -# Generate kernel modules.dep and map files for remove eeprom_mb. -depmod -a || true -# End automatically added section - diff --git a/platform/barefoot/sonic-platform-modules-ingrasys/debian/sonic-platform-ingrasys-s9180-32x.prerm b/platform/barefoot/sonic-platform-modules-ingrasys/debian/sonic-platform-ingrasys-s9180-32x.prerm deleted file mode 100644 index 76533bfe6889..000000000000 --- a/platform/barefoot/sonic-platform-modules-ingrasys/debian/sonic-platform-ingrasys-s9180-32x.prerm +++ /dev/null @@ -1,21 +0,0 @@ -# Automatically added by dh_systemd_start -if [ -d /run/systemd/system ]; then - deb-systemd-invoke stop s9180-32x-monitor.service >/dev/null - deb-systemd-invoke stop bfn.service >/dev/null - deb-systemd-invoke stop qsfp-monitor.service >/dev/null -fi -# End automatically added section -# Automatically added by dh_installinit -if [ -x "/etc/init.d/s9180-32x-monitor" ]; then - invoke-rc.d s9180-32x-monitor stop || exit $? -fi -if [ -x "/etc/init.d/bfn" ]; then - invoke-rc.d bfn stop || exit $? -fi -if [ -x "/etc/init.d/qsfp-monitor" ]; then - invoke-rc.d qsfp-monitor stop || exit $? -fi -# Driver deinit -/usr/sbin/i2c_utils.sh i2c_deinit -# End automatically added section -