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 | |
parent | 7cee03c63afadac76e87e276a5ef7b1bba27847b (diff) | |
download | opie-3df06db9e6fd268c7d234be05b01a2303dc0f7ba.zip opie-3df06db9e6fd268c7d234be05b01a2303dc0f7ba.tar.gz opie-3df06db9e6fd268c7d234be05b01a2303dc0f7ba.tar.bz2 |
Do not hardcode /opt/QtPalmtop but use $OPIEDIR
-rwxr-xr-x | noncore/tools/opie-sh/scripts/diskfree.sh | 4 | ||||
-rwxr-xr-x | noncore/tools/opie-sh/scripts/filesystem_mounter.sh | 8 | ||||
-rwxr-xr-x | noncore/tools/opie-sh/scripts/hostlist.sh | 6 | ||||
-rwxr-xr-x | noncore/tools/opie-sh/scripts/killproc.sh | 6 | ||||
-rwxr-xr-x | noncore/tools/opie-sh/scripts/launcher_refresh.sh | 10 | ||||
-rwxr-xr-x | noncore/tools/opie-sh/scripts/logviewer.sh | 8 | ||||
-rwxr-xr-x | noncore/tools/opie-sh/scripts/opie-sh-ssh-askpass.sh | 2 | ||||
-rwxr-xr-x | noncore/tools/opie-sh/scripts/opie-sh-wavelanchooser.sh | 4 | ||||
-rwxr-xr-x | noncore/tools/opie-sh/scripts/rsyncme.sh | 6 | ||||
-rwxr-xr-x | noncore/tools/opie-sh/scripts/service_manager.sh | 6 | ||||
-rwxr-xr-x | noncore/tools/opie-sh/scripts/stowctrl.sh | 8 | ||||
-rwxr-xr-x | noncore/tools/opie-sh/scripts/usbnetctrl.sh | 12 |
12 files changed, 40 insertions, 40 deletions
diff --git a/noncore/tools/opie-sh/scripts/diskfree.sh b/noncore/tools/opie-sh/scripts/diskfree.sh index 78415e3..0f17f15 100755 --- a/noncore/tools/opie-sh/scripts/diskfree.sh +++ b/noncore/tools/opie-sh/scripts/diskfree.sh | |||
@@ -14,18 +14,18 @@ | |||
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 | # 20020524-5 - bugfix | 17 | # 20020524-5 - bugfix |
18 | # 20020524-1 - initial release | 18 | # 20020524-1 - initial release |
19 | 19 | ||
20 | OPIE_SH=/opt/QtPalmtop/bin/opie-sh | 20 | OPIE_SH=$OPIEDIR/bin/opie-sh |
21 | 21 | ||
22 | # there must be a better way to do this with sed, but i had no time | 22 | # there must be a better way to do this with sed, but i had no time |
23 | # time to look into this yet... | 23 | # time to look into this yet... |
24 | 24 | ||
25 | ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/fsmounter.png>" | 25 | ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/fsmounter.png>" |
26 | echo "<h3>diskfree</h3> how much space is left ?<br>" | 26 | echo "<h3>diskfree</h3> how much space is left ?<br>" |
27 | echo "<p><table>" | 27 | echo "<p><table>" |
28 | 28 | ||
29 | df -h \ | 29 | df -h \ |
30 | | grep -v "Mounted on" \ | 30 | | grep -v "Mounted on" \ |
31 | | sed 's/ / /g' \ | 31 | | sed 's/ / /g' \ |
diff --git a/noncore/tools/opie-sh/scripts/filesystem_mounter.sh b/noncore/tools/opie-sh/scripts/filesystem_mounter.sh index faaf37c..ba461a1 100755 --- a/noncore/tools/opie-sh/scripts/filesystem_mounter.sh +++ b/noncore/tools/opie-sh/scripts/filesystem_mounter.sh | |||
@@ -19,30 +19,30 @@ | |||
19 | # 20020519-1 - added information screen with manpage excerpt, added | 19 | # 20020519-1 - added information screen with manpage excerpt, added |
20 | # better returncode-checking | 20 | # better returncode-checking |
21 | # 20020517-2 - fixed output bug | 21 | # 20020517-2 - fixed output bug |
22 | # 20020517-1 - nicer fullscreen, added about, tried icon | 22 | # 20020517-1 - nicer fullscreen, added about, tried icon |
23 | # | 23 | # |
24 | 24 | ||
25 | OPIE_SH=/opt/QtPalmtop/bin/opie-sh | 25 | OPIE_SH=$OPIEDIR/bin/opie-sh |
26 | 26 | ||
27 | ###################################################################### | 27 | ###################################################################### |
28 | # subroutines | 28 | # subroutines |
29 | 29 | ||
30 | about() { | 30 | about() { |
31 | ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/fsmounter.png>" | 31 | ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/fsmounter.png>" |
32 | echo "<h3>About</h3>" | 32 | echo "<h3>About</h3>" |
33 | echo "This little App should make it possible for you to " | 33 | echo "This little App should make it possible for you to " |
34 | echo "easily mount and unmount filesystems from /etc/fstab" | 34 | echo "easily mount and unmount filesystems from /etc/fstab" |
35 | echo "<p>" | 35 | echo "<p>" |
36 | ) | $OPIE_SH -t fsmounter -f & | 36 | ) | $OPIE_SH -t fsmounter -f & |
37 | SCREENCLEAN=$! | 37 | SCREENCLEAN=$! |
38 | sleep 1 | 38 | sleep 1 |
39 | } | 39 | } |
40 | 40 | ||
41 | beforemount() { | 41 | beforemount() { |
42 | ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/fsmounter.png>" | 42 | ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/fsmounter.png>" |
43 | echo "<h3>mount or unmount $MOUNTPOINT ?</h3>" | 43 | echo "<h3>mount or unmount $MOUNTPOINT ?</h3>" |
44 | echo "<b>excerpt from MOUNT(8) manpage:</b><p>" | 44 | echo "<b>excerpt from MOUNT(8) manpage:</b><p>" |
45 | echo "All files accessible in a Unix system are arranged in one | 45 | echo "All files accessible in a Unix system are arranged in one |
46 | big tree, the file hierarchy, rooted at <b>/</b>. These files | 46 | big tree, the file hierarchy, rooted at <b>/</b>. These files |
47 | can be spread out over several devices. The <b>mount</b> command | 47 | can be spread out over several devices. The <b>mount</b> command |
48 | serves to attach the file system found on some device to | 48 | serves to attach the file system found on some device to |
@@ -97,13 +97,13 @@ beforemount | |||
97 | get_action | 97 | get_action |
98 | 98 | ||
99 | if [ "$MOUNTPOINT" = "" ] | 99 | if [ "$MOUNTPOINT" = "" ] |
100 | then echo "ugly error...." | $OPIE_SH -f ; cleanup | 100 | then echo "ugly error...." | $OPIE_SH -f ; cleanup |
101 | fi | 101 | fi |
102 | 102 | ||
103 | ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/fsmounter.png>" | 103 | ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/fsmounter.png>" |
104 | echo "<h3>Output of $ACTION $MOUNTPOINT :</h3>" | 104 | echo "<h3>Output of $ACTION $MOUNTPOINT :</h3>" |
105 | echo "<pre>" | 105 | echo "<pre>" |
106 | $ACTION $MOUNTPOINT 2>&1 | 106 | $ACTION $MOUNTPOINT 2>&1 |
107 | echo "</pre><p>" | 107 | echo "</pre><p>" |
108 | echo "<h3>diskfree</h3> how much space is left ?<br>" | 108 | echo "<h3>diskfree</h3> how much space is left ?<br>" |
109 | echo "<p><table>" | 109 | echo "<p><table>" |
diff --git a/noncore/tools/opie-sh/scripts/hostlist.sh b/noncore/tools/opie-sh/scripts/hostlist.sh index 6d70793..d7c94f8 100755 --- a/noncore/tools/opie-sh/scripts/hostlist.sh +++ b/noncore/tools/opie-sh/scripts/hostlist.sh | |||
@@ -15,17 +15,17 @@ | |||
15 | # GNU General Public License for more details. | 15 | # GNU General Public License for more details. |
16 | # | 16 | # |
17 | # 20020524-1 - icon to hostlist | 17 | # 20020524-1 - icon to hostlist |
18 | # 20020517-1 - added icon, changed name in launcher | 18 | # 20020517-1 - added icon, changed name in launcher |
19 | # | 19 | # |
20 | 20 | ||
21 | CFG=/opt/QtPalmtop/share/config/hostlist.cfg | 21 | CFG=$OPIEDIR/share/config/hostlist.cfg |
22 | OPIE_SH=opie-sh | 22 | OPIE_SH=opie-sh |
23 | 23 | ||
24 | hostlist() { | 24 | hostlist() { |
25 | (echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/hostlist.png>" | 25 | (echo "<img src=$OPIEDIR/pics/opie-sh-scripts/hostlist.png>" |
26 | echo "<h3>Hostlist</h3><br>" | 26 | echo "<h3>Hostlist</h3><br>" |
27 | HOSTLIST=`cat $CFG | grep -v '#'` | 27 | HOSTLIST=`cat $CFG | grep -v '#'` |
28 | for HOST in $HOSTLIST | 28 | for HOST in $HOSTLIST |
29 | do | 29 | do |
30 | PT=` ping -c 1 $HOST | grep avg|cut -d " " -f4-` | 30 | PT=` ping -c 1 $HOST | grep avg|cut -d " " -f4-` |
31 | if [ "$PT" != "" ] | 31 | if [ "$PT" != "" ] |
@@ -43,13 +43,13 @@ hostlist() { | |||
43 | cleanup() { | 43 | cleanup() { |
44 | kill $SCREENCLEAN | 44 | kill $SCREENCLEAN |
45 | rm -f /tmp/qcop-msg-hostlist.sh | 45 | rm -f /tmp/qcop-msg-hostlist.sh |
46 | } | 46 | } |
47 | 47 | ||
48 | about() { | 48 | about() { |
49 | ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/hostlist.png>" | 49 | ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/hostlist.png>" |
50 | echo "<h3>About</h3>" | 50 | echo "<h3>About</h3>" |
51 | echo "This little App should make it possible for you to " | 51 | echo "This little App should make it possible for you to " |
52 | echo "check some hosts for availability." | 52 | echo "check some hosts for availability." |
53 | echo "<p>" | 53 | echo "<p>" |
54 | ) | $OPIE_SH -t hostlist -f & | 54 | ) | $OPIE_SH -t hostlist -f & |
55 | SCREENCLEAN=$! | 55 | SCREENCLEAN=$! |
diff --git a/noncore/tools/opie-sh/scripts/killproc.sh b/noncore/tools/opie-sh/scripts/killproc.sh index 8afb4b8..6380200 100755 --- a/noncore/tools/opie-sh/scripts/killproc.sh +++ b/noncore/tools/opie-sh/scripts/killproc.sh | |||
@@ -15,19 +15,19 @@ | |||
15 | # GNU General Public License for more details. | 15 | # GNU General Public License for more details. |
16 | # | 16 | # |
17 | # 20020524-1 - code optix | 17 | # 20020524-1 - code optix |
18 | # 20020519-1 - added icon to output | 18 | # 20020519-1 - added icon to output |
19 | # 20020517-1 - nicer fullscreen, added about, tried icon | 19 | # 20020517-1 - nicer fullscreen, added about, tried icon |
20 | 20 | ||
21 | OPIE_SH=/opt/QtPalmtop/bin/opie-sh | 21 | OPIE_SH=$OPIEDIR/bin/opie-sh |
22 | 22 | ||
23 | ###################################################################### | 23 | ###################################################################### |
24 | # subroutines | 24 | # subroutines |
25 | 25 | ||
26 | about() { | 26 | about() { |
27 | ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/killproc.png>" | 27 | ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/killproc.png>" |
28 | echo "<h3>About</h3>" | 28 | echo "<h3>About</h3>" |
29 | echo "This little util sends the TERM signal " | 29 | echo "This little util sends the TERM signal " |
30 | echo "to the specified process or process group. " | 30 | echo "to the specified process or process group. " |
31 | echo "The TERM signal will kill processes which " | 31 | echo "The TERM signal will kill processes which " |
32 | echo "do not catch this signal. " | 32 | echo "do not catch this signal. " |
33 | echo "<p> " | 33 | echo "<p> " |
@@ -57,13 +57,13 @@ select_process() { | |||
57 | about | 57 | about |
58 | select_process | 58 | select_process |
59 | 59 | ||
60 | PROCESS=`echo $PROCESS | cut -b -4` | 60 | PROCESS=`echo $PROCESS | cut -b -4` |
61 | 61 | ||
62 | 62 | ||
63 | ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/killproc.png>" | 63 | ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/killproc.png>" |
64 | echo "<h3>Output of kill $PROCESS</h3>" | 64 | echo "<h3>Output of kill $PROCESS</h3>" |
65 | echo "<pre>" | 65 | echo "<pre>" |
66 | kill $PROCESS 2>&1 | 66 | kill $PROCESS 2>&1 |
67 | echo "</pre><p>" | 67 | echo "</pre><p>" |
68 | echo done. | 68 | echo done. |
69 | ) | $OPIE_SH -f | 69 | ) | $OPIE_SH -f |
diff --git a/noncore/tools/opie-sh/scripts/launcher_refresh.sh b/noncore/tools/opie-sh/scripts/launcher_refresh.sh index 7850508..c3b0617 100755 --- a/noncore/tools/opie-sh/scripts/launcher_refresh.sh +++ b/noncore/tools/opie-sh/scripts/launcher_refresh.sh | |||
@@ -11,16 +11,16 @@ | |||
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 | OPIE_SH=opie-sh | 17 | OPIE_SH=$OPIEDIR/bin/opie-sh |
18 | 18 | ||
19 | launcher_refresh() { | 19 | launcher_refresh() { |
20 | (echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/launcher_refresh.png>" | 20 | (echo "<img src=$OPIEDIR/pics/opie-sh-scripts/launcher_refresh.png>" |
21 | echo "<h3>Refresh successful!</h3><br>" | 21 | echo "<h3>Refresh successful!</h3><br>" |
22 | echo the launcher has been refreshed. | 22 | echo the launcher has been refreshed. |
23 | echo | 23 | echo |
24 | echo this is useful if you installed packages using ipk instead of | 24 | echo this is useful if you installed packages using ipk instead of |
25 | echo oipkg. it is also helping if you are changing .desktop-files | 25 | echo oipkg. it is also helping if you are changing .desktop-files |
26 | echo often. | 26 | echo often. |
@@ -33,12 +33,12 @@ cleanup() { | |||
33 | } | 33 | } |
34 | 34 | ||
35 | ##################################################################### | 35 | ##################################################################### |
36 | # | 36 | # |
37 | # main | 37 | # main |
38 | 38 | ||
39 | /opt/QtPalmtop/bin/qcop QPE/TaskBar "reloadInputMethods()" | 39 | $OPIEDIR/bin/qcop QPE/TaskBar "reloadInputMethods()" |
40 | #/opt/QtPalmtop/bin/qcop QPE/System "restart()" | 40 | #$OPIEDIR/bin/qcop QPE/System "restart()" |
41 | /opt/QtPalmtop/bin/qcop QPE/System "linkChanged(QString)" | 41 | $OPIEDIR/bin/qcop QPE/System "linkChanged(QString)" |
42 | 42 | ||
43 | launcher_refresh | 43 | launcher_refresh |
44 | cleanup | 44 | cleanup |
diff --git a/noncore/tools/opie-sh/scripts/logviewer.sh b/noncore/tools/opie-sh/scripts/logviewer.sh index e9657b4..9b5dc25 100755 --- a/noncore/tools/opie-sh/scripts/logviewer.sh +++ b/noncore/tools/opie-sh/scripts/logviewer.sh | |||
@@ -14,20 +14,20 @@ | |||
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 | # 20020526-1a - initial release... | 17 | # 20020526-1a - initial release... |
18 | # | 18 | # |
19 | 19 | ||
20 | OPIE_SH=/opt/QtPalmtop/bin/opie-sh | 20 | OPIE_SH=$OPIEDIR/bin/opie-sh |
21 | INITPATH=/etc/init.d | 21 | INITPATH=/etc/init.d |
22 | 22 | ||
23 | ###################################################################### | 23 | ###################################################################### |
24 | # subroutines | 24 | # subroutines |
25 | 25 | ||
26 | about() { | 26 | about() { |
27 | ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/logviewer.png>" | 27 | ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/logviewer.png>" |
28 | echo "<h3>About</h3>" | 28 | echo "<h3>About</h3>" |
29 | echo "This little App should make it possible for you to " | 29 | echo "This little App should make it possible for you to " |
30 | echo "easily have a look at some of the syslogs. " | 30 | echo "easily have a look at some of the syslogs. " |
31 | echo "<p>" | 31 | echo "<p>" |
32 | ) | $OPIE_SH -t logviewer -f & | 32 | ) | $OPIE_SH -t logviewer -f & |
33 | SCREENCLEAN=$! | 33 | SCREENCLEAN=$! |
@@ -71,26 +71,26 @@ case $LOGMETHOD in | |||
71 | 0) | 71 | 0) |
72 | 72 | ||
73 | cat /proc/kmsg >/tmp/log.$$ & | 73 | cat /proc/kmsg >/tmp/log.$$ & |
74 | PID=$! | 74 | PID=$! |
75 | sleep 2 | 75 | sleep 2 |
76 | kill $PID | 76 | kill $PID |
77 | ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/logviewer.png>" | 77 | ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/logviewer.png>" |
78 | echo "<h3>/proc/kmsg</h3>" | 78 | echo "<h3>/proc/kmsg</h3>" |
79 | cat /tmp/log.$$ | 79 | cat /tmp/log.$$ |
80 | ) | $OPIE_SH -t kmsg -f | 80 | ) | $OPIE_SH -t kmsg -f |
81 | rm -f /tmp/$$ | 81 | rm -f /tmp/$$ |
82 | cleanup ;; | 82 | cleanup ;; |
83 | 83 | ||
84 | 1) | 84 | 1) |
85 | 85 | ||
86 | cat /proc/ksyms >/tmp/log.$$ & | 86 | cat /proc/ksyms >/tmp/log.$$ & |
87 | PID=$! | 87 | PID=$! |
88 | sleep 2 | 88 | sleep 2 |
89 | kill $PID | 89 | kill $PID |
90 | ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/logviewer.png>" | 90 | ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/logviewer.png>" |
91 | echo "<h3>/proc/ksyms</h3>" | 91 | echo "<h3>/proc/ksyms</h3>" |
92 | cat /tmp/log.$$ | 92 | cat /tmp/log.$$ |
93 | ) | $OPIE_SH -t ksyms -f | 93 | ) | $OPIE_SH -t ksyms -f |
94 | rm -f /tmp/$$ | 94 | rm -f /tmp/$$ |
95 | cleanup ;; | 95 | cleanup ;; |
96 | 96 | ||
diff --git a/noncore/tools/opie-sh/scripts/opie-sh-ssh-askpass.sh b/noncore/tools/opie-sh/scripts/opie-sh-ssh-askpass.sh index 7e1e7ad..7d13345 100755 --- a/noncore/tools/opie-sh/scripts/opie-sh-ssh-askpass.sh +++ b/noncore/tools/opie-sh/scripts/opie-sh-ssh-askpass.sh | |||
@@ -1,8 +1,8 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | # opie-sh-ssh-askpass -- ssh-askpass utility using opie-sh | 3 | # opie-sh-ssh-askpass -- ssh-askpass utility using opie-sh |
4 | 4 | ||
5 | OPIE_SH=opie-sh | 5 | OPIE_SH=$OPIEDIR/bin/opie-sh |
6 | 6 | ||
7 | exec $OPIE_SH -i -p -t "OpenSSH" -g -L "<SMALL>$@" 2>/dev/null | 7 | exec $OPIE_SH -i -p -t "OpenSSH" -g -L "<SMALL>$@" 2>/dev/null |
8 | 8 | ||
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 | |||
@@ -16,16 +16,16 @@ | |||
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." |
diff --git a/noncore/tools/opie-sh/scripts/rsyncme.sh b/noncore/tools/opie-sh/scripts/rsyncme.sh index c09aea8..3d56c12 100755 --- a/noncore/tools/opie-sh/scripts/rsyncme.sh +++ b/noncore/tools/opie-sh/scripts/rsyncme.sh | |||
@@ -14,14 +14,14 @@ | |||
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 | # 20020517-1 - added icon, changed name in launcher | 17 | # 20020517-1 - added icon, changed name in launcher |
18 | # | 18 | # |
19 | 19 | ||
20 | CFG=/opt/QtPalmtop/share/config/rsyncme.cfg | 20 | CFG=$OPIEDIR/share/config/rsyncme.cfg |
21 | OPIE_SH=opie-sh | 21 | OPIE_SH=$OPIEDIR/bin/opie-sh |
22 | 22 | ||
23 | update_cfg() { | 23 | update_cfg() { |
24 | # check if dir is in CFG and if not add it | 24 | # check if dir is in CFG and if not add it |
25 | if [ "`grep -c $DIR $CFG`" = "0" ] | 25 | if [ "`grep -c $DIR $CFG`" = "0" ] |
26 | thenecho $DIR >>$CFG | 26 | thenecho $DIR >>$CFG |
27 | fi | 27 | fi |
@@ -65,13 +65,13 @@ show_dirs() { | |||
65 | ( echo "<h3>Directorys chosen for sync:</h3>" | 65 | ( echo "<h3>Directorys chosen for sync:</h3>" |
66 | echo "<ul><li>$SRCDIR<li>$DESTDIR</ul>" ) \ | 66 | echo "<ul><li>$SRCDIR<li>$DESTDIR</ul>" ) \ |
67 | | $OPIE_SH -t "Got directories" -f | 67 | | $OPIE_SH -t "Got directories" -f |
68 | } | 68 | } |
69 | 69 | ||
70 | about() { | 70 | about() { |
71 | ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/rsyncme.png>" | 71 | ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/rsyncme.png>" |
72 | echo "<h3>About</h3>" | 72 | echo "<h3>About</h3>" |
73 | echo "This little App should make it possible for you to " | 73 | echo "This little App should make it possible for you to " |
74 | echo "easily choose the wanted options for an rsync process." | 74 | echo "easily choose the wanted options for an rsync process." |
75 | echo "<p>" | 75 | echo "<p>" |
76 | ) | $OPIE_SH -t rsync-helper -f & | 76 | ) | $OPIE_SH -t rsync-helper -f & |
77 | SCREENCLEAN=$! | 77 | SCREENCLEAN=$! |
diff --git a/noncore/tools/opie-sh/scripts/service_manager.sh b/noncore/tools/opie-sh/scripts/service_manager.sh index d1423a5..e3c04bc 100755 --- a/noncore/tools/opie-sh/scripts/service_manager.sh +++ b/noncore/tools/opie-sh/scripts/service_manager.sh | |||
@@ -16,20 +16,20 @@ | |||
16 | # | 16 | # |
17 | # 20020524-1 - added icon to statusinfo... | 17 | # 20020524-1 - added icon to statusinfo... |
18 | # 20020518-1 - optix | 18 | # 20020518-1 - optix |
19 | # 20020517-1 - added about and fullscreen | 19 | # 20020517-1 - added about and fullscreen |
20 | # | 20 | # |
21 | 21 | ||
22 | OPIE_SH=/opt/QtPalmtop/bin/opie-sh | 22 | OPIE_SH=$OPIEDIR/bin/opie-sh |
23 | INITPATH=/etc/init.d | 23 | INITPATH=/etc/init.d |
24 | 24 | ||
25 | ###################################################################### | 25 | ###################################################################### |
26 | # subroutines | 26 | # subroutines |
27 | 27 | ||
28 | about() { | 28 | about() { |
29 | ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/service_manager.png>" | 29 | ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/service_manager.png>" |
30 | echo "<h3>About</h3>" | 30 | echo "<h3>About</h3>" |
31 | echo "This little App should make it possible for you to " | 31 | echo "This little App should make it possible for you to " |
32 | echo "easily start and stop services in /etc/init.d." | 32 | echo "easily start and stop services in /etc/init.d." |
33 | echo "<p>" | 33 | echo "<p>" |
34 | ) | $OPIE_SH -t service-manager -f & | 34 | ) | $OPIE_SH -t service-manager -f & |
35 | SCREENCLEAN=$! | 35 | SCREENCLEAN=$! |
@@ -59,13 +59,13 @@ get_action() { | |||
59 | } | 59 | } |
60 | 60 | ||
61 | status_disclaimer() { | 61 | status_disclaimer() { |
62 | # tell that init scripts are not too standard | 62 | # tell that init scripts are not too standard |
63 | # | 63 | # |
64 | cat | $OPIE_SH -f <<EOT | 64 | cat | $OPIE_SH -f <<EOT |
65 | <img src=/opt/QtPalmtop/pics/opie-sh-scripts/service_manager.png> | 65 | <img src=$OPIEDIR/pics/opie-sh-scripts/service_manager.png> |
66 | <h3>status has been disabled</h3> | 66 | <h3>status has been disabled</h3> |
67 | 67 | ||
68 | the status service has been disabled | 68 | the status service has been disabled |
69 | because it is not supported by the | 69 | because it is not supported by the |
70 | most init scripts that come with | 70 | most init scripts that come with |
71 | familiar ...<p> | 71 | familiar ...<p> |
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 | |||
@@ -16,40 +16,40 @@ | |||
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 | } |
diff --git a/noncore/tools/opie-sh/scripts/usbnetctrl.sh b/noncore/tools/opie-sh/scripts/usbnetctrl.sh index 417435e..af68a3d 100755 --- a/noncore/tools/opie-sh/scripts/usbnetctrl.sh +++ b/noncore/tools/opie-sh/scripts/usbnetctrl.sh | |||
@@ -15,50 +15,50 @@ | |||
15 | # GNU General Public License for more details. | 15 | # GNU General Public License for more details. |
16 | # | 16 | # |
17 | # 20020524-1 - code beautification, added icons and reset | 17 | # 20020524-1 - code beautification, added icons and reset |
18 | # 20020517-2 - bugfixed fullscreen, added info about ifconfig | 18 | # 20020517-2 - bugfixed fullscreen, added info about ifconfig |
19 | # 20020517-1 - added about, fullscreen and icon | 19 | # 20020517-1 - added about, fullscreen and icon |
20 | 20 | ||
21 | OPIE_SH=/opt/QtPalmtop/bin/opie-sh | 21 | OPIE_SH=$OPIEDIR/bin/opie-sh |
22 | 22 | ||
23 | ###################################################################### | 23 | ###################################################################### |
24 | # subroutines | 24 | # subroutines |
25 | 25 | ||
26 | about() { | 26 | about() { |
27 | ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/usbnetctrl.png>" | 27 | ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/usbnetctrl.png>" |
28 | echo "<h3>About</h3>" | 28 | echo "<h3>About</h3>" |
29 | echo "This little App should make it easy for you to " | 29 | echo "This little App should make it easy for you to " |
30 | echo "activate / deactivate the usbnet-driver (on ipaq)" | 30 | echo "activate / deactivate the usbnet-driver (on ipaq)" |
31 | echo "<p>" | 31 | echo "<p>" |
32 | echo "To use it at first, you need to change the ifconfig" | 32 | echo "To use it at first, you need to change the ifconfig" |
33 | echo "line in /opt/QtPalmtop/bin/usbnetctrl.sh." | 33 | echo "line in $OPIEDIR/bin/usbnetctrl.sh." |
34 | ) | $OPIE_SH -t "usbnet control" -f & | 34 | ) | $OPIE_SH -t "usbnet control" -f & |
35 | SCREENCLEAN=$! | 35 | SCREENCLEAN=$! |
36 | sleep 1 | 36 | sleep 1 |
37 | } | 37 | } |
38 | 38 | ||
39 | startup() { | 39 | startup() { |
40 | ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/usbnetctrl.png>" | 40 | ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/usbnetctrl.png>" |
41 | echo "<h3>usbnet up</h3>" | 41 | echo "<h3>usbnet up</h3>" |
42 | modprobe usb-eth | 42 | modprobe usb-eth |
43 | ) 2>&1 | $OPIE_SH -t Output -f | 43 | ) 2>&1 | $OPIE_SH -t Output -f |
44 | 44 | ||
45 | $OPIE_SH -m -I -t "Usbnet Control" -M "Please connect the<br>ipaq to the cradle<br>and press OK" | 45 | $OPIE_SH -m -I -t "Usbnet Control" -M "Please connect the<br>ipaq to the cradle<br>and press OK" |
46 | 46 | ||
47 | ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/usbnetctrl.png>" | 47 | ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/usbnetctrl.png>" |
48 | echo "<h3>usbnet up</h3>" | 48 | echo "<h3>usbnet up</h3>" |
49 | ifconfig usbf up 192.168.0.1 netmask 255.255.255.0 | 49 | ifconfig usbf up 192.168.0.1 netmask 255.255.255.0 |
50 | 50 | ||
51 | ) 2>&1 | $OPIE_SH -t Output -f | 51 | ) 2>&1 | $OPIE_SH -t Output -f |
52 | if [ -f /root/masq.sh ] | 52 | if [ -f /root/masq.sh ] |
53 | then sh /root/masq.sh | 53 | then sh /root/masq.sh |
54 | fi | 54 | fi |
55 | } | 55 | } |
56 | 56 | ||
57 | stopit() { | 57 | stopit() { |
58 | ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/usbnetctrl.png>" | 58 | ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/usbnetctrl.png>" |
59 | echo "<h3>usbnet down</h3>" | 59 | echo "<h3>usbnet down</h3>" |
60 | ifconfig usbf down | 60 | ifconfig usbf down |
61 | sleep 1 | 61 | sleep 1 |
62 | rmmod usb-eth | 62 | rmmod usb-eth |
63 | rmmod sa1100usb_core | 63 | rmmod sa1100usb_core |
64 | ) 2>&1 | $OPIE_SH -t Output -f | 64 | ) 2>&1 | $OPIE_SH -t Output -f |