From 3c70077f308437281c72431223b532f6f427e1d0 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 7 Jul 2010 23:58:22 +0200 Subject: 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... --- package/ppp/files/hso.if-down | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 package/ppp/files/hso.if-down (limited to 'package/ppp/files/hso.if-down') 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 -- cgit v1.2.3