diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-11-05 11:10:12 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-11-05 11:10:12 +0100 |
commit | 013f987702ea7adad053593455693ae842dd97cf (patch) | |
tree | 52beb5457842ecc71f71015147f7a7c2ffb529d6 /package/base-files/src/lib/mdev/init | |
parent | 04b4332e8476769c558b3c75c5b88792ac0c95a3 (diff) |
execute huawei utility when web'n'walk stick is connected
Diffstat (limited to 'package/base-files/src/lib/mdev/init')
-rw-r--r-- | package/base-files/src/lib/mdev/init | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/package/base-files/src/lib/mdev/init b/package/base-files/src/lib/mdev/init index eec8242a1..35fd212f2 100644 --- a/package/base-files/src/lib/mdev/init +++ b/package/base-files/src/lib/mdev/init @@ -20,3 +20,13 @@ if [ "$SUBSYSTEM" == "pcmcia_socket" ];then /usr/sbin/pcmcia-socket-startup fi fi +if [ "$SUBSYSTEM" == "usb" ];then + if [ "$ACTION" == "add" ];then + if [ "$DEVTYPE" == "usb_device" ];then + logger "USB device added with: $PRODUCT" + if [ "$PRODUCT" == "12d1/1003/0" ];then + test -x /sbin/huawei && /sbin/huawei + fi + fi + fi +fi |