diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-07-07 23:58:22 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-07-07 23:58:22 +0200 |
commit | 3c70077f308437281c72431223b532f6f427e1d0 (patch) | |
tree | db825d10d656b0330867ce32e90d9f7207b22f02 /package/ppp/files/hso.if-down | |
parent | 92ee1314c1c4f6a93bbca3c4ffaeddc51b5609af (diff) |
add support for hso umts modems
if you like to use an usb umts modem with hso chipset,
this is the support for it.
use following in /etc/network/interfaces:
auto hso0
iface hso0 inet manual
pin xxxx
apn foo.bar
credentials go to freewrt 1.0 supporters...
Diffstat (limited to 'package/ppp/files/hso.if-down')
-rw-r--r-- | package/ppp/files/hso.if-down | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/package/ppp/files/hso.if-down b/package/ppp/files/hso.if-down new file mode 100644 index 000000000..6e4b4d655 --- /dev/null +++ b/package/ppp/files/hso.if-down @@ -0,0 +1,12 @@ +#!/bin/sh + +[ "$IFACE" == "hso0" ] || exit 0 + +[ -f /tmp/hso-connect ] || exit 0 + +PID=$(cat /tmp/hso-connect) +ps | grep "$PID" | grep -q hso-connect.sh && kill "$PID" +comgt -s -d /dev/ttyHS0 /etc/comgt/hsodisconnect.comgt +rm -f /tmp/hso-connect +ip address flush hso0 +ip link set hso0 down |