Skip to content

Commit 346ebef

Browse files
authored
Disable UART by default and optionalise it.
1 parent 2331dc3 commit 346ebef

File tree

1 file changed

+7
-5
lines changed
  • scripts/etc/init.d

1 file changed

+7
-5
lines changed

scripts/etc/init.d/rcS

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ final_action=reboot
4444
hardware_versions=detect
4545
hwrng_support=1
4646
enable_watchdog=0
47+
enable_uart=0
4748
gpu_mem=
4849

4950
# these shouldn't really be changed unless auto-detection fails
@@ -1316,11 +1317,12 @@ do
13161317
echo "#device_tree="
13171318
fi
13181319
if [ "${hv}" = "3" ] ; then
1319-
# we should probably add a config parameter for uart purpose
1320-
# as the statements below disables bluetooth which various/most
1321-
# people will prefer over the serial console
1322-
echo "# enable the serial console for the installed system"
1323-
echo "enable_uart=1"
1320+
# Only enable UART if the user explicitly sets that option.
1321+
# Enabled UART may break the bootprocess / bluetooth support.
1322+
if [ "${enable_uart}" = "1" ]; then
1323+
echo "# enable the serial console for the installed system"
1324+
echo "enable_uart=1"
1325+
fi
13241326
fi
13251327
} >> /rootfs/boot/config.txt
13261328

0 commit comments

Comments
 (0)