Diffstat (limited to 'noncore/tools/opie-sh/scripts/stowctrl.sh') (more/less context) (show whitespace changes)
-rwxr-xr-x | noncore/tools/opie-sh/scripts/stowctrl.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/noncore/tools/opie-sh/scripts/stowctrl.sh b/noncore/tools/opie-sh/scripts/stowctrl.sh index 475c3a3..20cb6ae 100755 --- a/noncore/tools/opie-sh/scripts/stowctrl.sh +++ b/noncore/tools/opie-sh/scripts/stowctrl.sh | |||
@@ -10,52 +10,52 @@ | |||
10 | # the Free Software Foundation; either version 2, or (at your option) | 10 | # the Free Software Foundation; either version 2, or (at your option) |
11 | # any later version. | 11 | # any later version. |
12 | # | 12 | # |
13 | # This program is distributed in the hope that it will be useful, | 13 | # This program is distributed in the hope that it will be useful, |
14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | # GNU General Public License for more details. | 16 | # GNU General Public License for more details. |
17 | # | 17 | # |
18 | # 20020524-1 - code beautification, added icons and reset | 18 | # 20020524-1 - code beautification, added icons and reset |
19 | # 20020517-2 - bugfixed fullscreen, added info about ifconfig | 19 | # 20020517-2 - bugfixed fullscreen, added info about ifconfig |
20 | # 20020517-1 - added about, fullscreen and icon | 20 | # 20020517-1 - added about, fullscreen and icon |
21 | 21 | ||
22 | OPIE_SH=/opt/QtPalmtop/bin/opie-sh | 22 | OPIE_SH=$OPIEDIR/bin/opie-sh |
23 | 23 | ||
24 | ###################################################################### | 24 | ###################################################################### |
25 | # subroutines | 25 | # subroutines |
26 | 26 | ||
27 | about() { | 27 | about() { |
28 | ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/stowctrl.png>" | 28 | ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/stowctrl.png>" |
29 | echo "<h3>About</h3>" | 29 | echo "<h3>About</h3>" |
30 | echo "This little App should make it easy for you to " | 30 | echo "This little App should make it easy for you to " |
31 | echo "activate / deactivate the stowaway keyboard (on ipaq)" | 31 | echo "activate / deactivate the stowaway keyboard (on ipaq)" |
32 | echo "<p>" | 32 | echo "<p>" |
33 | ) | $OPIE_SH -t "stowaway control" -f & | 33 | ) | $OPIE_SH -t "stowaway control" -f & |
34 | SCREENCLEAN=$! | 34 | SCREENCLEAN=$! |
35 | sleep 1 | 35 | sleep 1 |
36 | } | 36 | } |
37 | 37 | ||
38 | startup() { | 38 | startup() { |
39 | echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/stowctrl.png>" > /tmp/sout | 39 | echo "<img src=$OPIEDIR/pics/opie-sh-scripts/stowctrl.png>" > /tmp/sout |
40 | echo "<h3>stowaway up</h3>" >> /tmp/sout | 40 | echo "<h3>stowaway up</h3>" >> /tmp/sout |
41 | modprobe h3600_stowaway >> /tmp/sout | 41 | modprobe h3600_stowaway >> /tmp/sout |
42 | cat /dev/stowaway & | 42 | cat /dev/stowaway & |
43 | echo $! > /tmp/stowcatpid | 43 | echo $! > /tmp/stowcatpid |
44 | $OPIE_SH -t Output -f /tmp/sout | 44 | $OPIE_SH -t Output -f /tmp/sout |
45 | rm /tmp/sout | 45 | rm /tmp/sout |
46 | } | 46 | } |
47 | 47 | ||
48 | stopit() { | 48 | stopit() { |
49 | ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/stowctrl.png>" | 49 | ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/stowctrl.png>" |
50 | echo "<h3>stowaway down</h3>" | 50 | echo "<h3>stowaway down</h3>" |
51 | read THECAT < /tmp/stowcatpid | 51 | read THECAT < /tmp/stowcatpid |
52 | kill $THECAT | 52 | kill $THECAT |
53 | rmmod h3600_stowaway | 53 | rmmod h3600_stowaway |
54 | ) 2>&1 | $OPIE_SH -t Output -f | 54 | ) 2>&1 | $OPIE_SH -t Output -f |
55 | } | 55 | } |
56 | 56 | ||
57 | 57 | ||
58 | cleanup() { | 58 | cleanup() { |
59 | kill $SCREENCLEAN | 59 | kill $SCREENCLEAN |
60 | rm -f /tmp/qcop-msg-stowctrl.sh | 60 | rm -f /tmp/qcop-msg-stowctrl.sh |
61 | } | 61 | } |