File: aoetools.postinst

package info (click to toggle)
aoetools 36-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 464 kB
  • sloc: ansic: 1,506; sh: 627; makefile: 54
file content (24 lines) | stat: -rw-r--r-- 476 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

set -e

case "$1" in
configure)
    if which udevadm >/dev/null; then
        udevadm control --reload || true
    fi
    # load the kernel module (as opposed to letting the init script do it)
    if [ -d /run/systemd/system ] ; then
        /lib/systemd/systemd-modules-load aoetools.conf || true
    fi
    ;;
abort-upgrade|abort-remove|abort-deconfigure)
    ;;
*)
    echo "postinst called with unknown argument '$1'"
    exit 1
    ;;
esac

#DEBHELPER#
exit 0