summaryrefslogtreecommitdiffstats
path: root/debian/smartmontools.postinst
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/smartmontools.postinst15
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/smartmontools.postinst b/debian/smartmontools.postinst
new file mode 100644
index 0000000..bc04f19
--- /dev/null
+++ b/debian/smartmontools.postinst
@@ -0,0 +1,15 @@
+#!/bin/sh
+set -e
+
+# Remove shutdown and reboot links; this init script does not need them.
+case "$1" in
+ configure)
+ if [ -x "$(command -v update-smart-drivedb)" ]; then
+ update-smart-drivedb --install
+ else
+ cp -f /usr/share/smartmontools/drivedb.h /var/lib/smartmontools/drivedb/
+ fi
+ ;;
+esac
+
+#DEBHELPER#