Changes

no edit summary
Line 17: Line 17:  
* Custom APN
 
* Custom APN
 
* PAP authentication method
 
* PAP authentication method
 +
 +
Open the '''config_generate''' script and navigate to the line 178. There, you should be able to see the '''"add_modem_section()"''' portion of the script, where we will be making our changes. To set a custom APN, you will need to add the following lines to the existing "uci_set" commands:
 +
* uci_set network "${interface}" force "-1"
 +
* uci_set network "${interface}" apn "YOUR_APN"
 +
To add PAP authentication method, change the existing "'''uci_set network "${interface}" auth "none"'''" line to "'''uci_set network "${interface}" auth "pap"'''", then add the following lines to define your APN username and password:
 +
* uci_set network "${interface}" username "YOUR_USERNAME"
 +
* uci_set network "${interface}" password "YOUR_PASSWORD"
 +
After applying the aforementioned changes, the '''"add_modem_section()"''' portion of the script should look similar to this:
 +
[[File:Apn dif fin.png|frameless|left]]

Navigation menu