wwan0-run.sh - conn - A script repository to manage connections in Linux.
(HTM) git clone git://r-36.net/conn
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
wwan0-run.sh (508B)
---
1 #!/bin/sh
2
3 . ../common.sh
4
5 interface=`getinterface $0`
6
7 case "$1" in
8 -s)
9 ${WWANDIR}/f3507g-x201-init -s
10 ${WWANDIR}/f3507g-x201-usbnet -s
11 startdhcp $interface
12 startpingd $interface
13 exit $?
14 ;;
15 -k)
16 stoppingd $interface
17 stopdhcp $interface
18 ${WWANDIR}/f3507g-x201-usbnet -k
19 ${WWANDIR}/f3507g-x201-init -k
20 exit $?
21 ;;
22 -u)
23 ;;
24 -o)
25 exit islinkup $interface
26 ;;
27 -r)
28 $0 -k $interface;
29 $0 -s $interface;
30 ;;
31 *)
32 echo "usage: $0 [-s|-k|-u|-r] interface"
33 exit 1
34 ;;
35 esac
36 exit 0
37