diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-07-07 16:10:56 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-07-07 16:10:56 +0200 |
commit | 0166fe71e6785706df783b9b88d42ce90bd248dd (patch) | |
tree | 759b06904508f16300532dd598a6db3db7433896 /etc/functions/umts | |
parent | eb96b6b42f2090b240838f23dc6d1d313bf790bb (diff) |
Added umts function
Diffstat (limited to 'etc/functions/umts')
-rwxr-xr-x | etc/functions/umts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/etc/functions/umts b/etc/functions/umts new file mode 100755 index 0000000..9c1daf5 --- /dev/null +++ b/etc/functions/umts @@ -0,0 +1,14 @@ +## vim:ft=zsh +typeset module + +if [[ $1 == on ]] { + for module (usbcore {u,e}hci_hcd) { + sudo modprobe $module + } + sleep 10 + sudo pon umts + sleep 40 + sudo pon umts +} elif [[ $1 == off ]] { + sudo poff umts +} |