Skip to content

Commit

Permalink
better init-pi
Browse files Browse the repository at this point in the history
  • Loading branch information
WebReflection committed Oct 2, 2024
1 parent 0b4e7cb commit 2f1a8bf
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
23 changes: 18 additions & 5 deletions init-pi
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
# RPi3 - RPi4 => boot 512M
# root: init
if [ "$USER" = "root" ] || [ "$(whoami)" = "root" ]; then
echo 'ParallelDownloads = 4' >> /etc/pacman.conf
pacman-key --init
pacman-key --populate archlinuxarm
pacman -Syyu --noconfirm
while ! pacman -Syyu --noconfirm
do
:
done

# optional RPi arm64 - Enables RPi5 too
yes y | pacman -S --needed linux-rpi
Expand All @@ -22,14 +26,23 @@ else
bash <(curl -s https://archibold.io/install/weston)
bash <(curl -s https://archibold.io/install/weston-launch)

# optional cog + wpewebkit dependencies
sudo pacman -S --needed --noconfirm \
wpewebkit wpebackend-fdo meson wayland-protocols \
# cog dependencies
while ! sudo pacman -S --needed --noconfirm wpewebkit wpebackend-fdo meson wayland-protocols gtk4
do
:
done

# wpewebkit dependencies
while ! sudo pacman -S --needed --noconfirm \
pipewire-jack libbluray \
gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad \
gstreamer-vaapi gst-libav \
geoip geoclue \
weston mesa ttf-dejavu
noto-fonts noto-fonts-emoji \
ttf-dejavu # without this no cog !?!
do
:
done

if [ "$(which aur 2> /dev/null)" = "" ]; then
bash <(curl -s https://archibold.io/install/aur)
Expand Down
4 changes: 1 addition & 3 deletions install/weston-launch
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@ setWestonMode() {
local MODE="$1"
local NAME=""
if [ -f ~/.config/weston.ini ]; then
sed -i "s/name=.*//;s/mode=.*//;/^$/d;s/\[/\n\[/" ~/.config/weston.ini
for NAME in $(ls /sys/class/drm | grep HDMI); do
if [ "$NAME" != "" ]; then
echo "name=${NAME:6}">>~/.config/weston.ini
echo "mode=${MODE}">>~/.config/weston.ini
# prefer one output only
sed -i "s/name=.*/name=${NAME:6}/;s/mode=.*/mode=${MODE}/" ~/.config/weston.ini
return
fi
done
Expand Down

0 comments on commit 2f1a8bf

Please sign in to comment.