@@ -68,18 +68,15 @@ needed_packages() {
6868 # Install python3/python3-pip/python3-wheel/python3-setuptools - for python packages
6969 echo -n " $( timestamp) [openHABian] Installing additional needed packages... "
7070 if cond_redirect apt-get -o DPkg::Lock::Timeout=" $APTTIMEOUT " install --yes apt-transport-https avahi-daemon bc jq mbpoll \
71- moreutils python3 python3-pip python3-wheel python3-setuptools sysstat \
72- fontconfig; \
73- then echo " OK" ; else echo " FAILED" ; return 1; fi
71+ moreutils python3 python3-pip python3-wheel python3-setuptools sysstat fontconfig; then echo " OK" ; else echo " FAILED" ; return 1; fi
7472 if is_pi_wlan && [[ -z $PREOFFLINE ]]; then
7573 echo -n " $( timestamp) [openHABian] Installing python3 serial package... "
76- if cond_redirect apt-get install --yes -o DPkg::Lock::Timeout=" $APTTIMEOUT " python3-smbus python3-serial; then echo " OK" ; else echo " FAILED" ; return 1 ; fi
74+ if cond_redirect apt-get install --yes -o DPkg::Lock::Timeout=" $APTTIMEOUT " python3-smbus python3-serial; then echo " OK" ; else echo " FAILED" ; fi
7775 echo -n " $( timestamp) [openHABian] Installing pigpio package... "
78- if cond_redirect apt-get install --yes -o DPkg::Lock::Timeout=" $APTTIMEOUT " pigpio ; then echo " OK" ; else echo " FAILED" ; return 1 ; fi
76+ if cond_redirect apt-get install --yes -o DPkg::Lock::Timeout=" $APTTIMEOUT " rgpiod ; then echo " OK" ; else echo " FAILED" ; fi
7977 echo -n " $( timestamp) [openHABian] Installing additional bluetooth packages... "
8078 if cond_redirect apt-get install --yes -o DPkg::Lock::Timeout=" $APTTIMEOUT " bluez python3-dev libbluetooth-dev \
81- raspberrypi-sys-mods pi-bluetooth; \
82- then echo " OK" ; else echo " FAILED" ; return 1; fi
79+ raspberrypi-sys-mods pi-bluetooth; then echo " OK" ; else echo " FAILED" ; fi
8380 fi
8481}
8582
@@ -455,9 +452,8 @@ change_swapsize() {
455452 (( size/= 1024 ))
456453
457454 echo -n " $( timestamp) [openHABian] Adjusting swap size to $size MB... "
458- if ! cond_redirect dphys-swapfile swapoff; then echo " FAILED (swapoff)" ; return 1; fi
459- if ! cond_redirect sed -i ' s|^#*.*CONF_SWAPSIZE=.*$|CONF_SWAPSIZE=' " ${size} " ' |g' /etc/dphys-swapfile; then echo " FAILED (swapfile)" ; return 1; fi
460- if cond_redirect dphys-swapfile swapon; then echo " OK (reboot required)" ; else echo " FAILED (swapon)" ; return 1; fi
455+ # TBD
456+ # dphys-swapfile is no longer available in trixie
461457}
462458
463459# # Reduce the RPi GPU memory to the minimum to allow for the system to utilize
0 commit comments