Skip to content
Snippets Groups Projects
Commit 2aef1ee5 authored by tobiglaser's avatar tobiglaser
Browse files

fix missing reboot message: divert stderr > stdout

parent b211c4ec
No related branches found
No related tags found
No related merge requests found
......@@ -126,7 +126,7 @@
if [ $I2C -eq 1 ] # if I2C is off
then
echo " Turning on I2C."
a=$(sudo raspi-config nonint do_i2c 0)
a=$(sudo raspi-config nonint do_i2c 0 2>&1)
# if the i2c driver was updated a reboot is necessary.
# "modprobe: FATAL: Module i2c-dev not found in directory /lib/modules/5.15.32-v7l+"
if echo $a | grep -i 'modprobe\|FATAL\|not found' > /dev/null
......@@ -181,7 +181,7 @@
#display reboot message if necessary
if [ "$pleaseReboot" = true ]
then
echo "PLEASE REBOOT"
echo "PLEASE REBOOT (sudo reboot)"
fi
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment