From 47abd715d52aead1095adb02ced357a87f5087be 2018-12-12 01:45:39 From: Unknown Date: 2018-12-12 01:45:39 Subject: [PATCH] a --- diff --git a/bootstrap.d/15-rpi-config.sh b/bootstrap.d/15-rpi-config.sh index 173c328..7c84352 100644 --- a/bootstrap.d/15-rpi-config.sh +++ b/bootstrap.d/15-rpi-config.sh @@ -182,7 +182,7 @@ if [ "$ENABLE_CONSOLE" = true ] ; then CMDLINE="${CMDLINE} console=serial0,115200" # Enable serial console systemd style - chroot_exec systemctl enable serial-getty\@serial0.service + chroot_exec systemctl enable serial-getty@serial0.service else echo "enable_uart=0" >> "${BOOT_DIR}/config.txt" fi diff --git a/rpi23-gen-image.sh b/rpi23-gen-image.sh index d0f2f08..8c6b71b 100755 --- a/rpi23-gen-image.sh +++ b/rpi23-gen-image.sh @@ -436,7 +436,7 @@ if [ "$ENABLE_UBOOT" = true ] ; then fi if [ "$ENABLE_USBBOOT" = true ] ; then - if ["$RPI_MODEL" != 3 ] || ["$RPI_MODEL" != 3P ] ; then + if ! ["$RPI_MODEL" = 3 ] || ! ["$RPI_MODEL" = 3P ] ; then echo "error: Booting from USB alone is only supported by Raspberry Pi 3 and 3P" exit 1 fi