author | zecke <zecke> | 2004-08-14 12:05:39 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-08-14 12:05:39 (UTC) |
commit | 3df06db9e6fd268c7d234be05b01a2303dc0f7ba (patch) (unidiff) | |
tree | 6a642674a0a69729c207337e63e20b8e02f40ec4 /noncore/tools/opie-sh/scripts/stowctrl.sh | |
parent | 7cee03c63afadac76e87e276a5ef7b1bba27847b (diff) | |
download | opie-3df06db9e6fd268c7d234be05b01a2303dc0f7ba.zip opie-3df06db9e6fd268c7d234be05b01a2303dc0f7ba.tar.gz opie-3df06db9e6fd268c7d234be05b01a2303dc0f7ba.tar.bz2 |
Do not hardcode /opt/QtPalmtop but use $OPIEDIR
Diffstat (limited to 'noncore/tools/opie-sh/scripts/stowctrl.sh') (more/less context) (ignore 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 | |||
@@ -19,13 +19,13 @@ | |||
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)" |
@@ -36,7 +36,7 @@ about() { | |||
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 & |
@@ -46,7 +46,7 @@ startup() { | |||
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 |