Skip to content

Commit

Permalink
v6.15
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel (Fourdee) committed Sep 8, 2018
1 parent 5cb8daf commit 7f9ff81
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions PREP_SYSTEM_FOR_DIETPI.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1174,10 +1174,13 @@ _EOF_

/DietPi/dietpi/func/dietpi-set_hardware serialconsole enable
# - Disable for post-1st run setup:
# Exclude XU4: https://github.com/Fourdee/DietPi/issues/2038#issuecomment-416089875
if (( $G_HW_MODEL != 11 )); then
sed -i '/^[[:blank:]]*CONFIG_SERIAL_CONSOLE_ENABLE=/c\CONFIG_SERIAL_CONSOLE_ENABLE=0' /DietPi/dietpi.txt
# - must be enabled for the following:
# XU4: https://github.com/Fourdee/DietPi/issues/2038#issuecomment-416089875
# RockPro64: Fails to boot into kernel without serial enabled
if (( $G_HW_MODEL == 11 || $G_HW_MODEL == 42 )); then

sed -i '/^[[:blank:]]*CONFIG_SERIAL_CONSOLE_ENABLE=/c\CONFIG_SERIAL_CONSOLE_ENABLE=0' /DietPi/dietpi.txt
sed -i '/^[[:blank:]]*CONFIG_SERIAL_CONSOLE_ENABLE=/c\CONFIG_SERIAL_CONSOLE_ENABLE=1' /DietPi/dietpi.txt

fi

Expand Down
2 changes: 1 addition & 1 deletion dietpi.txt
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ CONFIG_WIFI_COUNTRY_CODE=GB

#Serial Console: Set to 1 if you require a serial console.
# NB: Serial console is always enabled by default for 1st run setup, then disabled afterwards, unless set below.
# NB: must be ENABLED for the following boards: Odroid XU4/HC1/HC2
# NB: must be ENABLED for the following boards: Odroid XU4/HC1/HC2, RockPro64
CONFIG_SERIAL_CONSOLE_ENABLE=0

#Soundcard
Expand Down

0 comments on commit 7f9ff81

Please sign in to comment.