File: aoetools.postinst

package info (click to toggle)
aoetools 36-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 484 kB
  • sloc: ansic: 1,506; sh: 606; makefile: 50
file content (23 lines) | stat: -rw-r--r-- 536 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
#!/bin/sh

set -e

case "$1" in
    configure)
        if command -v 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