summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-07-07 16:10:56 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-07-07 16:10:56 +0200
commit0166fe71e6785706df783b9b88d42ce90bd248dd (patch)
tree759b06904508f16300532dd598a6db3db7433896
parenteb96b6b42f2090b240838f23dc6d1d313bf790bb (diff)
Added umts function
-rwxr-xr-xetc/functions/umts14
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
+}