ToastFreeware
/
gregoa
/
zavai.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Install in usr/share/zavai/hooks
[gregoa/zavai.git]
/
hooks
/
wifi
1
#!/bin/sh
2
3
case "$1" in
4
# At the start of zavai
5
status)
6
if [ "`om wifi power`" = 1 ]
7
then
8
echo on
9
else
10
echo off
11
fi
12
;;
13
# When starting wifi
14
start)
15
om wifi power 1
16
;;
17
# When stopping wifi
18
stop)
19
om wifi power 0
20
;;
21
*)
22
echo "Usage: $0 {start|stop|status}." >&2
23
exit 1
24
;;
25
esac
26
27
exit 0