Skip to content

Commit fca4381

Browse files
committed
fix serial0 enabling
1 parent 30614e1 commit fca4381

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.setup/gatewaysetup.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ CYAN='\033[0;36m'
1111
NC='\033[0m' # No Color
1212
APPSRVDIR=/home/pi/gateway/
1313
CONFIG=/boot/config.txt
14+
CMDLINE=/boot/cmdline.txt
1415
USER=${SUDO_USER:-$(who -m | awk '{ print $1 }')}
1516

1617
#usage ex:
@@ -199,11 +200,10 @@ if (whiptail --title "ATXRaspi shutdown script" --yesno "Do you have a MightyHat
199200
sudo bash shutdownchecksetup.sh && sudo rm shutdownchecksetup.sh
200201
fi
201202

202-
echo -e "${CYAN}************* STEP: Enable GPIO/serial0 port & disconnect from BT module *************${NC}"
203-
#sudo raspi-config nonint do_serial 0
204-
#echo "dtoverlay=pi3-disable-bt" >> /boot/config.txt
205-
set_config_var enable_uart 1 $CONFIG
206-
set_config_var dtoverlay pi3-disable-bt $CONFIG
203+
echo -e "${CYAN}************* STEP: Enable GPIO serial0, disable serial0 shell & Bluetooth *************${NC}"
204+
sudo raspi-config nonint do_serial 1 #disables console shell over GPIO serial
205+
set_config_var enable_uart 1 $CONFIG #enables GPIO serial
206+
set_config_var dtoverlay pi3-disable-bt $CONFIG #disables bluetooth
207207

208208
echo -e "${CYAN}************* STEP: Configuring logrotate *************${NC}"
209209
sudo echo "#this is used by logrotate and should be placed in /etc/logrotate.d/

0 commit comments

Comments
 (0)