Skip to content

Commit

Permalink
test: allow to fail in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Nov 13, 2023
1 parent c5c8705 commit b946f5d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions installation/routines/set_raspi_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ set_raspi_config() {

# Autologin
echo " * Enable Autologin for 'pi' user"
sudo raspi-config nonint do_boot_behaviour B2
sudo raspi-config nonint do_boot_behaviour B2 || "$DOCKER_RUNNING" == true # allow to fail in Docker

# Wait for network at boot
# echo " * Enable 'Wait for network at boot'"
# sudo raspi-config nonint do_boot_wait 1

# power management of wifi: switch off to avoid disconnecting
echo " * Disable Wifi power management to avoid disconnecting"
sudo iwconfig wlan0 power off
sudo iwconfig wlan0 power off || "$DOCKER_RUNNING" == true # allow to fail in Docker

# On-board audio
if [[ $(get_onboard_audio) -eq 1 ]]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
echo "Entering setup.inc.sh"

printf "Activating I2C interface...\n"
sudo raspi-config nonint do_i2c 0
sudo raspi-config nonint do_i2c 0 || "$DOCKER_RUNNING" == true # allow to fail in Docker

echo -e "\nREBOOT for changes to take effect!\n"

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
echo "Entering setup.inc.sh"

printf "Activating SPI...\n"
sudo raspi-config nonint do_spi 0
sudo raspi-config nonint do_spi 0 || "$DOCKER_RUNNING" == true # allow to fail in Docker

echo -e "\nREBOOT for changes to take effect!\n"
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
echo "Entering setup.inc.sh"

echo "Disabling login shell to be accessible over serial"
sudo raspi-config nonint do_serial 1
sudo raspi-config nonint do_serial 1 || "$DOCKER_RUNNING" == true # allow to fail in Docker

echo "Enabling serial port hardware"
sudo raspi-config nonint set_config_var enable_uart 1 /boot/config.txt
sudo raspi-config nonint set_config_var enable_uart 1 /boot/config.txt || "$DOCKER_RUNNING" == true # allow to fail in Docker

echo -e "\nREBOOT for changes to take effect!\n"

0 comments on commit b946f5d

Please sign in to comment.