Diffstat (limited to 'noncore/tools/opie-sh/scripts/opie-sh-wavelanchooser.sh') (more/less context) (show whitespace changes)
-rwxr-xr-x | noncore/tools/opie-sh/scripts/opie-sh-wavelanchooser.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/tools/opie-sh/scripts/opie-sh-wavelanchooser.sh b/noncore/tools/opie-sh/scripts/opie-sh-wavelanchooser.sh index 13a1e79..49c62c4 100755 --- a/noncore/tools/opie-sh/scripts/opie-sh-wavelanchooser.sh +++ b/noncore/tools/opie-sh/scripts/opie-sh-wavelanchooser.sh | |||
@@ -1,49 +1,49 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | # wavelanchooser.sh - a demonstration of opie-sh | 3 | # wavelanchooser.sh - a demonstration of opie-sh |
4 | # | 4 | # |
5 | # Copyright (C) 2002 gonz@directbox.com | 5 | # Copyright (C) 2002 gonz@directbox.com |
6 | # | 6 | # |
7 | # This program is free software; you can redistribute it and/or modify | 7 | # This program is free software; you can redistribute it and/or modify |
8 | # it under the terms of the GNU General Public License as published by | 8 | # it under the terms of the GNU General Public License as published by |
9 | # the Free Software Foundation; either version 2, or (at your option) | 9 | # the Free Software Foundation; either version 2, or (at your option) |
10 | # any later version. | 10 | # any later version. |
11 | # | 11 | # |
12 | # This program is distributed in the hope that it will be useful, | 12 | # This program is distributed in the hope that it will be useful, |
13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | # GNU General Public License for more details. | 15 | # GNU General Public License for more details. |
16 | # | 16 | # |
17 | # 20020528-1 - fixed filename in cleanup | 17 | # 20020528-1 - fixed filename in cleanup |
18 | # 20020526-1 - rudimental but working | 18 | # 20020526-1 - rudimental but working |
19 | # 20020524-1 - initial working release planned | 19 | # 20020524-1 - initial working release planned |
20 | # | 20 | # |
21 | 21 | ||
22 | OPIE_SH=opie-sh | 22 | OPIE_SH=$OPIEDIR/bin/opie-sh |
23 | 23 | ||
24 | about() { | 24 | about() { |
25 | ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/qtwavelan.png>" | 25 | ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/qtwavelan.png>" |
26 | echo "<h3>About</h3>" | 26 | echo "<h3>About</h3>" |
27 | echo "This little App is for changing the location setting" | 27 | echo "This little App is for changing the location setting" |
28 | echo "for your wireless card. <br>" | 28 | echo "for your wireless card. <br>" |
29 | echo "actually it only starts /etc/init.d/[home|work] and can" | 29 | echo "actually it only starts /etc/init.d/[home|work] and can" |
30 | echo "be easily turned into a quick program to start the service" | 30 | echo "be easily turned into a quick program to start the service" |
31 | echo "or init script you use most." | 31 | echo "or init script you use most." |
32 | echo "<p>" | 32 | echo "<p>" |
33 | ) | $OPIE_SH -t wavelanchooser -f & | 33 | ) | $OPIE_SH -t wavelanchooser -f & |
34 | SCREENCLEAN=$! | 34 | SCREENCLEAN=$! |
35 | sleep 1 | 35 | sleep 1 |
36 | } | 36 | } |
37 | 37 | ||
38 | cleanup() { | 38 | cleanup() { |
39 | kill $SCREENCLEAN $SCREENCLEAN2 | 39 | kill $SCREENCLEAN $SCREENCLEAN2 |
40 | rm -f /tmp/qcop-msg-opie-sh-wavelanchooser.sh | 40 | rm -f /tmp/qcop-msg-opie-sh-wavelanchooser.sh |
41 | } | 41 | } |
42 | 42 | ||
43 | 43 | ||
44 | about | 44 | about |
45 | 45 | ||
46 | # choose if work or home | 46 | # choose if work or home |
47 | $OPIE_SH -m -t "network-settings dialog" \ | 47 | $OPIE_SH -m -t "network-settings dialog" \ |
48 | -M "which configuration do you want ? " \ | 48 | -M "which configuration do you want ? " \ |
49 | -w -0 home -1 work -g | 49 | -w -0 home -1 work -g |