File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ CYAN='\033[0;36m'
1111NC=' \033[0m' # No Color
1212APPSRVDIR=/home/pi/gateway/
1313CONFIG=/boot/config.txt
14+ CMDLINE=/boot/cmdline.txt
1415USER=${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
200201fi
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
208208echo -e " ${CYAN} ************* STEP: Configuring logrotate *************${NC} "
209209sudo echo " #this is used by logrotate and should be placed in /etc/logrotate.d/
You can’t perform that action at this time.
0 commit comments