Skip to content

Commit

Permalink
v9.5
Browse files Browse the repository at this point in the history
- DietPi-Config | Detect as well UART devices with indices above 9. The Raspberry Pi 5 has a ttyAMA10
  • Loading branch information
MichaIng committed May 25, 2024
1 parent 457ae23 commit 1f32880
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dietpi/dietpi-config
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ Re-enabling HDMI requires a reboot. If you need emergency HDMI output, edit the
G_WHIP_MENU_ARRAY=()

(( $G_HW_MODEL < 10 )) && G_WHIP_MENU_ARRAY+=('' '●─ Toggle console ')
for i in /dev/{tty{S,AMA,SAC,AML,SC,GS,FIQ,MV},hvc}[0-9]
for i in /dev/{tty{S,AMA,SAC,AML,SC,GS,FIQ,MV},hvc}[0-9]*
do
[[ -e $i ]] || continue
i=${i#/dev/}
Expand Down
6 changes: 3 additions & 3 deletions dietpi/func/dietpi-set_hardware
Original file line number Diff line number Diff line change
Expand Up @@ -1503,7 +1503,7 @@ Do you want to continue and disable the serial login console?' || return 1

# Enable boot messages depending on device
# - Skip on USB getget serial device, which requires loading a kernel module first and hence cannot be used for boot outputs
if [[ $INPUT_ADDITIONAL == 'ttyGS'[0-9] ]]
if [[ $INPUT_ADDITIONAL == 'ttyGS'[0-9]* ]]
then
:

Expand Down Expand Up @@ -1567,7 +1567,7 @@ _EOF_

# Enable for all detected Serial/UART devices
else
for i in /dev/{tty{S,AMA,SAC,AML,SC,GS,FIQ,MV},hvc}[0-9]
for i in /dev/{tty{S,AMA,SAC,AML,SC,GS,FIQ,MV},hvc}[0-9]*
do
[[ -e $i ]] || continue
INPUT_ADDITIONAL=${i/\/dev\/} Serial_Main
Expand Down Expand Up @@ -1629,7 +1629,7 @@ _EOF_

# Disable for all detected Serial/UART devices
else
for i in /dev/{tty{S,AMA,SAC,AML,SC,GS,FIQ,MV},hvc}[0-9]
for i in /dev/{tty{S,AMA,SAC,AML,SC,GS,FIQ,MV},hvc}[0-9]*
do
[[ -e $i ]] || continue
INPUT_ADDITIONAL=${i/\/dev\/} Serial_Main
Expand Down

0 comments on commit 1f32880

Please sign in to comment.