diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:14:48 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:14:48 +0000 |
commit | 9021c15fadb3638b6d118fdba8cf19cc4ca9e063 (patch) | |
tree | 3971b5280a3877d4d1c9d1b729f860c6c4752d54 /debian/smartmontools.postinst | |
parent | Adding upstream version 7.4. (diff) | |
download | smartmontools-9021c15fadb3638b6d118fdba8cf19cc4ca9e063.tar.xz smartmontools-9021c15fadb3638b6d118fdba8cf19cc4ca9e063.zip |
Adding debian version 7.4-2.debian/7.4-2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/smartmontools.postinst')
-rw-r--r-- | debian/smartmontools.postinst | 15 |
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# |