File: udftools.postinst

package info (click to toggle)
udftools 2.3-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,628 kB
  • sloc: ansic: 15,554; sh: 4,170; makefile: 57
file content (14 lines) | stat: -rw-r--r-- 304 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
set -e

if [ "$1" = "configure" ]; then
	if which udevadm 1>/dev/null 2>&1; then
		if udevadm control --reload; then
			if dpkg --compare-versions "$2" le "2.0-1~"; then
				udevadm trigger --action=add --subsystem-match=block --property-match=ID_CDROM=1 || true
			fi
		fi
	fi
fi

#DEBHELPER#