GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — OpenDVM/install_raspi34.sh at main · DB0SL/OpenDVM

Expand file tree

/

install_raspi34.sh

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
executable file
·
34 lines (27 loc) · 1.23 KB
/

install_raspi34.sh

Copy path

File metadata and controls

executable file
·
34 lines (27 loc) · 1.23 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
28
29
30
31
32
33
34
#!/usr/bin/env bash
set -e
# Root nötig
[ "$EUID" -ne 0 ] && { echo "Bitte mit sudo starten."; exit 1; }
# Boot-Pfad ermitteln (Bookworm=/boot/firmware, sonst /boot)
BOOT="/boot/firmware"; [ -d /boot ] && [ ! -d "$BOOT" ] && BOOT="/boot"
CFG="$BOOT/config.txt"
CMD="$BOOT/cmdline.txt"
# Backups (einmalig)
cp -n "$CFG" "$CFG.bak" 2>/dev/null || true
cp -n "$CMD" "$CMD.bak" 2>/dev/null || true
# UART aktiv + BT aus (generisches Overlay)
if grep -qE '^\s*enable_uart=' "$CFG"; then
sed -i 's/^\s*enable_uart=.*/enable_uart=1/' "$CFG"
else
printf "\n# MMDVM HAT\nenable_uart=1\n" >> "$CFG"
fi
grep -qE '^\s*dtoverlay=disable-bt' "$CFG" || printf "dtoverlay=disable-bt\n" >> "$CFG"
# Serielle Konsole aus cmdline entfernen (console=… / kgdboc=…)
sed -i -E 's/\s*console=(serial0|ttyAMA0|ttyS0),[0-9]+//g; s/\s*kgdboc=(serial0|ttyAMA0|ttyS0),[0-9]+//g' "$CMD"
# Mehrfache Spaces aufräumen
sed -i -E 's/\s+/ /g; s/^ //; s/ $//' "$CMD"
# Getty auf seriellen Ports stoppen/deaktivieren (falls aktiv)
systemctl disable --now [email protected] 2>/dev/null || true
systemctl disable --now [email protected] 2>/dev/null || true
systemctl disable --now [email protected] 2>/dev/null || true
echo "Ready. Please reboot NOW!"
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.