#!/bin/sh set -e # Remove shutdown and reboot links; this init script does not need them. if dpkg --compare-versions "$2" lt "5.38+svn2879-1"; then if [ -e /etc/rc0.d/K20smartmontools ]; then rm -f /etc/rc0.d/K20smartmontools fi if [ -e /etc/rc6.d/K20smartmontools ]; then rm -f /etc/rc6.d/K20smartmontools fi fi # Automatically added by dh_installinit if [ -x "/etc/init.d/smartmontools" ]; then update-rc.d smartmontools start 20 2 3 4 5 . stop 20 1 . >/dev/null invoke-rc.d smartmontools start || exit $? fi # End automatically added section