-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathQualcomm_Gobi2000.sh
45 lines (35 loc) · 1.09 KB
/
Qualcomm_Gobi2000.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Setting up a Qualcomm Gobi 2000 WWAN card in Debian 8.
# Assuming that the PIN authentication is disabled on the SIM card.
# Copyright (c) 2016 Stanislav Sinyagin <[email protected]>.
# This content is published under Creative Commons Attribution 4.0
# International (CC BY 4.0) lincense.
# Source repository: https://github.com/ssinyagin/wwan_udev_rules
apt-get install -y ppp gobi-loader wvdial
wget -O /etc/udev/rules.d/99-wwan.rules \
https://raw.githubusercontent.com/ssinyagin/wwan_udev_rules/master/99-wwan.rules
mkdir /lib/firmware/gobi
cd /lib/firmware/gobi
wget --no-check-certificate -nd -nc https://www.nerdstube.de/lenovo/treiber/gobi/{amss.mbn,apps.mbn,UQCN.mbn}
cat >/etc/wvdial.conf <<'EOT'
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","internet"
Phone = *99#
New PPPD = yes
Modem = /dev/ttyWWAN02
Dial Command = ATDT
Baud = 9600
Username = ''
Password = ''
Ask Password = 0
Stupid Mode = 1
Compuserve = 0
Idle Seconds = 0
ISDN = 0
Auto DNS = 1
EOT
cat >/etc/network/interfaces.d/ppp0 <<'EOT'
auto ppp0
iface ppp0 inet wvdial
EOT