File: smartmontools.postinst

package info (click to toggle)
smartmontools 7.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,080 kB
  • sloc: cpp: 53,631; ansic: 9,924; sh: 6,493; makefile: 1,017
file content (15 lines) | stat: -rw-r--r-- 334 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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#