File: dahdi-dkms.prerm

package info (click to toggle)
dahdi-linux 1:2.11.1.0.20170917~dfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 8,280 kB
  • sloc: ansic: 125,177; perl: 2,395; sh: 1,133; makefile: 427; xml: 24
file content (22 lines) | stat: -rw-r--r-- 475 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
#!/bin/sh

set -e

# Work around an upgrade from a system with #923983:
if [ "$1" = "prerm-failed-upgrade" ]; then
	case "$2" in
	1:2.11.1.0.20170917~dfsg-[56])
		# The original prerm script tried in this case
		# to remove the module that is not there, and failed.
		# We should not fail:
		if [ ! "$(dkms status -m dahdi -v $2)" ]; then
			exit 0
		fi
	;;
	esac
	# If we got here, there was another reason for the upgrade to
	# fail. Don't hide it.
	exit 1
fi

#DEBHELPER#