File: smartmontools.postinst

package info (click to toggle)
smartmontools 6.5%2Bsvn4324-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,772 kB
  • ctags: 7,352
  • sloc: cpp: 41,134; ansic: 9,556; sh: 1,339; makefile: 894
file content (21 lines) | stat: -rw-r--r-- 474 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
set -e

# Remove shutdown and reboot links; this init script does not need them.
case "$1" in
  configure)
	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
 ;;
esac

dpkg-maintscript-helper rm_conffile \
	/etc/init.d/smartd 6.1+svn3812-1~ smartmontools -- "$@"

#DEBHELPER#