Cli configuration

i have RUT950. i am able to ssh normally …i need to configure
1- manual APN using Linux cli
2- Swap between mobile carrier using Linux cli
3- configure wifi using Linux cli

Hello,

  1. To manually set the APN via the CLI, you can use the following command:
uci set network.mob1s1a1.apn='carrier apn'

Replace 'carrier apn' with the APN of your mobile carrier. After setting the APN, commit the changes and restart the network interface with:

uci commit network
/etc/init.d/network restart
  1. To manually select a mobile carrier, you can use the following commands:
uci set simcard.@sim[0].operator='manual'
uci set simcard.@sim[0].opernum='operator number'

Replace 'operator number' with the number associated with your carrier (this will vary depending on the carrier). After setting the operator, you can commit the changes using:

uci commit simcard
  1. Similarly, wireless settings can be configured using UCI commands. To list available wireless parameters, use:
uci show wireless

You can then modify the wireless settings based on your needs. For example, to set the wireless SSID:

uci set wireless.default_radio0.ssid='YourSSID'
uci commit wireless
/etc/init.d/network restart

Best regards,