File: rkdeveloptool.postinst

package info (click to toggle)
rkdeveloptool 1.32%2Bgit20210408.46bb4c0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 468 kB
  • sloc: cpp: 7,181; makefile: 21; sh: 16
file content (31 lines) | stat: -rwxr-xr-x 568 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
# Based on sunxi-tools.postinst from https://salsa.debian.org/debian/sunxi-tools/-/blob/master/debian/sunxi-tools.postinst

set -e

case "$1" in
    configure)

        addgroup --system --quiet rkdeveloptool
        if command -v udevadm >/dev/null 2>&1; then
            udevadm trigger --subsystem-match usb --attr-match=idVendor=2207 || true
        fi

        ;;

    abort-upgrade|abort-remove|abort-deconfigure)

        ;;

    *)

        echo "postinst called with unknown argument \`$1'" >&2
        exit 0

        ;;
esac

#DEBHELPER#

exit 0