Commandline administration ‐ Cellular - freifunk-gluon/gluon GitHub Wiki
HowTo configure cellular via uci:
For Cellular to work it's necessary to at least add the gluon cellular section, set the APN and to enable cellular usage.
Other settings can be ommited if they aren't neccesary for the choosen SIM and network.
You need to run gluon-reconfigure
and reboot
(service network restart
might suffice but rebooting is probably safer) to apply any changes you made.
add uci section:
You need to do this if the uci section isn't present. It's save to do so anyway:
uci set gluon.cellular=cellular
uci commit gluon.cellular
enable/disable cellular usage
enable
uci set gluon.cellular.enabled=1
uci commit gluon.cellular.enabled
disable
uci set gluon.cellular.enabled=0
uci commit gluon.cellular.enabled
set APN
uci set gluon.cellular.apn='internet'
uci commit gluon.cellular.apn
set APN username and password
uci set gluon.cellular.username='user'
uci commit gluon.cellular.username
uci set gluon.cellular.password='pass'
uci commit gluon.cellular.password
set pdptype
available options are:
IP
(IPv4 only)IPV6
(IPv6 only)IPV4V6
(Dual Stack, will be used if nothing is set)
uci set gluon.cellular.pdptype='IPV4V6'
uci commit gluon.cellular.pdptype
set SIM pin
uci set gluon.cellular.pin='0000'
uci commit gluon.cellular.pin
apply changes
gluon-reconfigure
reboot