From 47f392564263df64fac92194ca2472cabe606ed6 Mon Sep 17 00:00:00 2001 From: Roman Yeryomin Date: Tue, 15 Jan 2013 22:34:47 +0200 Subject: 3g autodetection without web gui Signed-off-by: Roman Yeryomin --- package/query3g/files/query3g_setup.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 package/query3g/files/query3g_setup.sh (limited to 'package/query3g/files/query3g_setup.sh') diff --git a/package/query3g/files/query3g_setup.sh b/package/query3g/files/query3g_setup.sh new file mode 100644 index 000000000..bfc05c0e5 --- /dev/null +++ b/package/query3g/files/query3g_setup.sh @@ -0,0 +1,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 -- cgit v1.2.3