@@ -174,7 +174,7 Allow the installation of non-free Debian packages that do not comply with the D | |||||
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`. |
|
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 | ##### `ENABLE_BLUETOOTH`=false |
|
176 | ##### `ENABLE_BLUETOOTH`=false | |
177 | Enable Bluetooth interface on the RPi0/3. |
|
177 | Enable Bluetooth interface on the RPi0/3/3P. | |
178 |
|
178 | |||
179 | ##### `ENABLE_RSYSLOG`=true |
|
179 | ##### `ENABLE_RSYSLOG`=true | |
180 | If set to false, disable and uninstall rsyslog (so logs will be available only in journal files) |
|
180 | If set to false, disable and uninstall rsyslog (so logs will be available only in journal files) |
@@ -330,12 +330,22 else | |||||
330 | IMAGE_NAME=${IMAGE_NAME:=${BASEDIR}/${DATE}-${KERNEL_ARCH}-${KERNEL_BRANCH}-rpi${RPI_MODEL}-${RELEASE}-${RELEASE_ARCH}} |
|
330 | IMAGE_NAME=${IMAGE_NAME:=${BASEDIR}/${DATE}-${KERNEL_ARCH}-${KERNEL_BRANCH}-rpi${RPI_MODEL}-${RELEASE}-${RELEASE_ARCH}} | |
331 | fi |
|
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 | if [ "$ENABLE_WIRELESS" = true ] ; then |
|
334 | # Include bluetooth packages on supported boards | |
335 | if [ "$RPI_MODEL" = 1 ] || [ "$RPI_MODEL" = 1P ] || [ "$RPI_MODEL" = 2 ] ; then |
|
335 | if [ "$ENABLE_BLUETOOTH" = true ] && [ "$ENABLE_CONSOLE" = false ]; then | |
336 | echo "error: The selected Raspberry Pi model has no internal wireless interface" |
|
336 | APT_INCLUDES="${APT_INCLUDES},bluetooth,bluez" | |
337 | exit 1 |
|
|||
338 | fi |
|
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 | |||
|
345 | if [ "$ENABLE_WIRELESS" = true ] ; then | |||
|
346 | echo "error: The selected Raspberry Pi model has no internal wireless interface" | |||
|
347 | exit 1 | |||
|
348 | fi | |||
339 | fi |
|
349 | fi | |
340 |
|
350 | |||
341 | # Check if DISABLE_UNDERVOLT_WARNINGS parameter value is supported |
|
351 | # Check if DISABLE_UNDERVOLT_WARNINGS parameter value is supported | |
@@ -388,22 +398,6 else | |||||
388 | fi |
|
398 | fi | |
389 | fi |
|
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 | # Check if root SSH (v2) public key file exists |
|
401 | # Check if root SSH (v2) public key file exists | |
408 | if [ -n "$SSH_ROOT_PUB_KEY" ] ; then |
|
402 | if [ -n "$SSH_ROOT_PUB_KEY" ] ; then | |
409 | if [ ! -f "$SSH_ROOT_PUB_KEY" ] ; then |
|
403 | if [ ! -f "$SSH_ROOT_PUB_KEY" ] ; then |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant