Minor patch for ppp.conf

From: Dirk-Willem van Gulik <dirkx_at_webweaving.org>
Date: Wed, 14 Aug 2024 19:15:05 UTC
Minor patch for ppp.conf below. This makes the out of the 
box u3g(4) config/command referred to from its manpage a 
lot more usable out of the box. 

Especially now  that virtually everyone uses “internet” as 
the APN and Usernames/passwords are no longer required.

I would not mind some advice on the speed setting - as obviously 
the card can handle a much higher baudrate; but AFAIK these
cannot be set from ppp.

With kind regards,

Dw.

*** ppp.conf.orig Wed Aug 14 21:03:58 2024
--- ppp.conf Wed Aug 14 21:09:40 2024
***************
*** 36,43 ****
--- 36,61 ----
   add default HISADDR # Add a (sticky) default route

   u3g:
+  # Configuration for the u3g(4) 3G and 4G datacards setup.
+  #
+  # Fill out the APN in below (often 'internet'). The PIN is
+  # assumed to be disabled (e.g. '0000'). If not; add a line
+  #  
+  #     AT+CPIN=123 OK \
+  #
+  # Above the AT+CPIN? line in below dial string. Some providers
+  # also need an authname/authkey and/or a special phone number.
+  #
   set device /dev/cuaU0.0
   set phone *99\#
+  set speed 921600
+  set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
+            \"\" \
+            AT OK-AT-OK \
+            AT+CPIN? READY \
+            AT+CSQ OK \
+            AT+CGDCONT=1,\\\"IP\\\",\\\"<your-providers-APN>\\\" OK \
+            ATDT\\T TIMEOUT 40 CONNECT"
   set timeout 0
   set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
   add default HISADDR # Add a (sticky) default route