blob: abb0b8dab62600ab8df8196f156ec6c8a7eea089 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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
}
|