summaryrefslogtreecommitdiffstats
path: root/package/query3g/files/query3g_setup.sh
blob: bfc05c0e52d0fb3e7510a2c5bda561c673f37998 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

dev=`uci get query3g.dongle.device`
pin=`uci get query3g.dongle.pin`

uci set network.wan.proto=3g
uci set network.wan.ifname=ppp0
uci set network.wan.username=umts
uci set network.wan.password=umts
uci set network.wan.device=$dev
uci set network.wan.pin=$pin

uci commit network