summaryrefslogtreecommitdiff
path: root/etc/functions/umts
diff options
context:
space:
mode:
Diffstat (limited to 'etc/functions/umts')
-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
+}