summarylogtreecommitdiffstats
path: root/hpuld.install
blob: 0720ad32c3c12bb9d6e5794f3406ff96ccf64b44 (plain)
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
post_install() {

	# These drivers are not free software...

	local _FULL_LOCALE_="$(locale | grep LANG | cut -d= -f2 | cut -d. -f1 | sed s/_/\-/)"
	local _SHORT_LOCALE_="$(locale | grep LANG | cut -d= -f2 | cut -d_ -f1)"
	local _LICENSE_PATH_='/usr/share/licenses/hpuld'

	echo

	if [ -f "${_LICENSE_PATH_}/eula-${_FULL_LOCALE_}.txt" ]; then
		cat "${_LICENSE_PATH_}/eula-${_FULL_LOCALE_}.txt"
	elif [ -f "${_LICENSE_PATH_}/eula-${_SHORT_LOCALE_}.txt" ]; then
		cat "${_LICENSE_PATH_}/eula-${_SHORT_LOCALE_}.txt"
	else
		cat "${_LICENSE_PATH_}/eula.txt"
	fi

	echo
	echo '----------------------------------------'
	echo
	echo 'If you want to use the scanner, make sure that the `smfp` backend is listed in'
	echo '/etc/sane.d/dll.conf'
	echo

}