Pārlūkot izejas kodu

add choice to disable getty@ttyAMA0 service

* interferes with GPRS
clementinecomputing 5 gadi atpakaļ
vecāks
revīzija
4b2063b573
1 mainītis faili ar 18 papildinājumiem un 0 dzēšanām
  1. 18 0
      aux/deploy-busunit-interactive

+ 18 - 0
aux/deploy-busunit-interactive

@@ -426,6 +426,24 @@ if [[ "$setupfona" =~ ^[yY]?$ ]] ; then
 
 fi
 
+##### disable serial-getty@ttyAMA0
+#####
+
+echo -n "Disable serial-getty@ttyAMA0 service (this can interfere with the GPRS modem)? [Y/n]: "
+read disablegettyama
+
+if [[ "$disablegettyama" =~ ^[yY]?$ ]] ; then
+
+  echo "  Disabling serial-getty@ttyAMA0 service..."
+
+  echo "  systemctl mask serial-getty@ttyAMA0.service"
+  systemctl mask serial-getty@ttyAMA0.service
+
+  echo ""
+
+fi
+
+
 #echo -n "Setup FONA to connect at startup? [Y/n]: "
 #read fonanetwork
 #