@@ -174,7 +174,7 Allow the installation of non-free Debian packages that do not comply with the D | |||
|
174 | 174 | Download and install the [closed-source firmware binary blob](https://github.com/RPi-Distro/firmware-nonfree/raw/master/brcm) that is required to run the internal wireless interface of the Raspberry Pi model `3`. This parameter is ignored if the specified `RPI_MODEL` is not `3`. |
|
175 | 175 | |
|
176 | 176 | ##### `ENABLE_BLUETOOTH`=false |
|
177 | Enable Bluetooth interface on the RPi0/3. | |
|
177 | Enable Bluetooth interface on the RPi0/3/3P. | |
|
178 | 178 | |
|
179 | 179 | ##### `ENABLE_RSYSLOG`=true |
|
180 | 180 | If set to false, disable and uninstall rsyslog (so logs will be available only in journal files) |
@@ -330,9 +330,19 else | |||
|
330 | 330 | IMAGE_NAME=${IMAGE_NAME:=${BASEDIR}/${DATE}-${KERNEL_ARCH}-${KERNEL_BRANCH}-rpi${RPI_MODEL}-${RELEASE}-${RELEASE_ARCH}} |
|
331 | 331 | fi |
|
332 | 332 | |
|
333 | # Check if the internal wireless interface is supported by the RPi model | |
|
333 | if [ "$RPI_MODEL" = 0 ] || [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ; then | |
|
334 | # Include bluetooth packages on supported boards | |
|
335 | if [ "$ENABLE_BLUETOOTH" = true ] && [ "$ENABLE_CONSOLE" = false ]; then | |
|
336 | APT_INCLUDES="${APT_INCLUDES},bluetooth,bluez" | |
|
337 | fi | |
|
338 | # Check if console or bluetooth configuration is invalid on RPI 0,3,3P | |
|
339 | if [ "$ENABLE_BLUETOOTH" = true ] && [ "$ENABLE_CONSOLE" = true ]; then | |
|
340 | echo "error: ENABLE_BLUETOOTH and ENABLE_CONSOLE can't be active on the same time." | |
|
341 | exit 1 | |
|
342 | fi | |
|
343 | else # if [ "$RPI_MODEL" = 1 ] || [ "$RPI_MODEL" = 1P ] || [ "$RPI_MODEL" = 2 ] ; then | |
|
344 | # Check if the internal wireless interface is not supported by the RPi model | |
|
334 | 345 | if [ "$ENABLE_WIRELESS" = true ] ; then |
|
335 | if [ "$RPI_MODEL" = 1 ] || [ "$RPI_MODEL" = 1P ] || [ "$RPI_MODEL" = 2 ] ; then | |
|
336 | 346 | echo "error: The selected Raspberry Pi model has no internal wireless interface" |
|
337 | 347 | exit 1 |
|
338 | 348 | fi |
@@ -388,22 +398,6 else | |||
|
388 | 398 | fi |
|
389 | 399 | fi |
|
390 | 400 | |
|
391 | if [ "$ENABLE_BLUETOOTH" = true ] ; then | |
|
392 | if [ "$RPI_MODEL" = 0 ] || [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ; then | |
|
393 | if [ "$ENABLE_CONSOLE" = false ] ; then | |
|
394 | APT_INCLUDES="${APT_INCLUDES},bluetooth,bluez" | |
|
395 | fi | |
|
396 | fi | |
|
397 | fi | |
|
398 | ||
|
399 | if [ "$ENABLE_BLUETOOTH" = true ] ; then | |
|
400 | if [ "$RPI_MODEL" = 0 ] || [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ; then | |
|
401 | if [ "$ENABLE_CONSOLE" = false ] ; then | |
|
402 | APT_INCLUDES="${APT_INCLUDES},bluetooth,bluez" | |
|
403 | fi | |
|
404 | fi | |
|
405 | fi | |
|
406 | ||
|
407 | 401 | # Check if root SSH (v2) public key file exists |
|
408 | 402 | if [ -n "$SSH_ROOT_PUB_KEY" ] ; then |
|
409 | 403 | if [ ! -f "$SSH_ROOT_PUB_KEY" ] ; then |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant