File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
scriptmodules/supplementary Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,11 @@ function apt_upgrade_raspbiantools() {
18
18
# install an older kernel/firmware for stretch to resolve newer kernel issues or unhold if updating to a newer release
19
19
stretch_fix_raspbiantools
20
20
21
+ # on Buster, always install the Bluez package from the RPI repos
22
+ buster_bluez_pin_raspbiantools
23
+
21
24
aptUpdate
22
- apt-get -y dist-upgrade
25
+ apt-get -y dist-upgrade --allow-downgrades
23
26
}
24
27
25
28
function lxde_raspbiantools() {
@@ -73,6 +76,19 @@ function stretch_fix_raspbiantools() {
73
76
fi
74
77
}
75
78
79
+ function buster_bluez_pin_raspbiantools() {
80
+ # pin the 'bluez' package to the RPI repos to prevent any Debian updates overwriting it
81
+ # use Priority 1001 to force the the installation even when the Debian package is installed
82
+ local pin_file=" /etc/apt/preferences.d/01-bluez-pin"
83
+ if isPlatform " rpi" && [[ " $__os_debian_ver " -eq 10 && ! -f " $pin_file " ]] ; then
84
+ cat << PIN_EOF > "$pin_file "
85
+ Package: bluez
86
+ Pin: origin archive.raspberrypi.org
87
+ Pin-Priority: 1001
88
+ PIN_EOF
89
+ fi
90
+ }
91
+
76
92
function install_firmware_raspbiantools() {
77
93
local ver=" $1 "
78
94
local state=" $2 "
You can’t perform that action at this time.
0 commit comments