summaryrefslogtreecommitdiff
authorzecke <zecke>2004-08-14 12:05:39 (UTC)
committer zecke <zecke>2004-08-14 12:05:39 (UTC)
commit3df06db9e6fd268c7d234be05b01a2303dc0f7ba (patch) (unidiff)
tree6a642674a0a69729c207337e63e20b8e02f40ec4
parent7cee03c63afadac76e87e276a5ef7b1bba27847b (diff)
downloadopie-3df06db9e6fd268c7d234be05b01a2303dc0f7ba.zip
opie-3df06db9e6fd268c7d234be05b01a2303dc0f7ba.tar.gz
opie-3df06db9e6fd268c7d234be05b01a2303dc0f7ba.tar.bz2
Do not hardcode /opt/QtPalmtop but use $OPIEDIR
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xnoncore/tools/opie-sh/scripts/diskfree.sh4
-rwxr-xr-xnoncore/tools/opie-sh/scripts/filesystem_mounter.sh8
-rwxr-xr-xnoncore/tools/opie-sh/scripts/hostlist.sh6
-rwxr-xr-xnoncore/tools/opie-sh/scripts/killproc.sh6
-rwxr-xr-xnoncore/tools/opie-sh/scripts/launcher_refresh.sh10
-rwxr-xr-xnoncore/tools/opie-sh/scripts/logviewer.sh8
-rwxr-xr-xnoncore/tools/opie-sh/scripts/opie-sh-ssh-askpass.sh2
-rwxr-xr-xnoncore/tools/opie-sh/scripts/opie-sh-wavelanchooser.sh4
-rwxr-xr-xnoncore/tools/opie-sh/scripts/rsyncme.sh6
-rwxr-xr-xnoncore/tools/opie-sh/scripts/service_manager.sh6
-rwxr-xr-xnoncore/tools/opie-sh/scripts/stowctrl.sh8
-rwxr-xr-xnoncore/tools/opie-sh/scripts/usbnetctrl.sh12
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
@@ -17,12 +17,12 @@
17# 20020524-5 - bugfix 17# 20020524-5 - bugfix
18# 20020524-1 - initial release 18# 20020524-1 - initial release
19 19
20OPIE_SH=/opt/QtPalmtop/bin/opie-sh 20OPIE_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
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
@@ -22,13 +22,13 @@
22# 20020517-1 - nicer fullscreen, added about, tried icon 22# 20020517-1 - nicer fullscreen, added about, tried icon
23# 23#
24 24
25OPIE_SH=/opt/QtPalmtop/bin/opie-sh 25OPIE_SH=$OPIEDIR/bin/opie-sh
26 26
27###################################################################### 27######################################################################
28# subroutines 28# subroutines
29 29
30about() { 30about() {
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"
@@ -39,7 +39,7 @@ about() {
39} 39}
40 40
41beforemount() { 41beforemount() {
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
@@ -100,7 +100,7 @@ if [ "$MOUNTPOINT" = "" ]
100then echo "ugly error...." | $OPIE_SH -f ; cleanup 100then echo "ugly error...." | $OPIE_SH -f ; cleanup
101fi 101fi
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
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
@@ -18,11 +18,11 @@
18# 20020517-1 - added icon, changed name in launcher 18# 20020517-1 - added icon, changed name in launcher
19# 19#
20 20
21CFG=/opt/QtPalmtop/share/config/hostlist.cfg 21CFG=$OPIEDIR/share/config/hostlist.cfg
22OPIE_SH=opie-sh 22OPIE_SH=opie-sh
23 23
24hostlist() { 24hostlist() {
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
@@ -46,7 +46,7 @@ cleanup() {
46} 46}
47 47
48about() { 48about() {
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."
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
@@ -18,13 +18,13 @@
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
21OPIE_SH=/opt/QtPalmtop/bin/opie-sh 21OPIE_SH=$OPIEDIR/bin/opie-sh
22 22
23###################################################################### 23######################################################################
24# subroutines 24# subroutines
25 25
26about() { 26about() {
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. "
@@ -60,7 +60,7 @@ select_process
60PROCESS=`echo $PROCESS | cut -b -4` 60PROCESS=`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
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
@@ -14,10 +14,10 @@
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
17OPIE_SH=opie-sh 17OPIE_SH=$OPIEDIR/bin/opie-sh
18 18
19launcher_refresh() { 19launcher_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
@@ -36,9 +36,9 @@ cleanup() {
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
43launcher_refresh 43launcher_refresh
44cleanup 44cleanup
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
@@ -17,14 +17,14 @@
17# 20020526-1a - initial release... 17# 20020526-1a - initial release...
18# 18#
19 19
20OPIE_SH=/opt/QtPalmtop/bin/opie-sh 20OPIE_SH=$OPIEDIR/bin/opie-sh
21INITPATH=/etc/init.d 21INITPATH=/etc/init.d
22 22
23###################################################################### 23######################################################################
24# subroutines 24# subroutines
25 25
26about() { 26about() {
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. "
@@ -74,7 +74,7 @@ cat /proc/kmsg >/tmp/log.$$ &
74PID=$! 74PID=$!
75sleep 2 75sleep 2
76kill $PID 76kill $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
@@ -87,7 +87,7 @@ cat /proc/ksyms >/tmp/log.$$ &
87PID=$! 87PID=$!
88sleep 2 88sleep 2
89kill $PID 89kill $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
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
@@ -2,7 +2,7 @@
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
5OPIE_SH=opie-sh 5OPIE_SH=$OPIEDIR/bin/opie-sh
6 6
7exec $OPIE_SH -i -p -t "OpenSSH" -g -L "<SMALL>$@" 2>/dev/null 7exec $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
@@ -19,10 +19,10 @@
19# 20020524-1 - initial working release planned 19# 20020524-1 - initial working release planned
20# 20#
21 21
22OPIE_SH=opie-sh 22OPIE_SH=$OPIEDIR/bin/opie-sh
23 23
24about() { 24about() {
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>"
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
@@ -17,8 +17,8 @@
17# 20020517-1 - added icon, changed name in launcher 17# 20020517-1 - added icon, changed name in launcher
18# 18#
19 19
20CFG=/opt/QtPalmtop/share/config/rsyncme.cfg 20CFG=$OPIEDIR/share/config/rsyncme.cfg
21OPIE_SH=opie-sh 21OPIE_SH=$OPIEDIR/bin/opie-sh
22 22
23update_cfg() { 23update_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
@@ -68,7 +68,7 @@ show_dirs() {
68} 68}
69 69
70about() { 70about() {
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."
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
@@ -19,14 +19,14 @@
19# 20020517-1 - added about and fullscreen 19# 20020517-1 - added about and fullscreen
20# 20#
21 21
22OPIE_SH=/opt/QtPalmtop/bin/opie-sh 22OPIE_SH=$OPIEDIR/bin/opie-sh
23INITPATH=/etc/init.d 23INITPATH=/etc/init.d
24 24
25###################################################################### 25######################################################################
26# subroutines 26# subroutines
27 27
28about() { 28about() {
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."
@@ -62,7 +62,7 @@ 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
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
22OPIE_SH=/opt/QtPalmtop/bin/opie-sh 22OPIE_SH=$OPIEDIR/bin/opie-sh
23 23
24###################################################################### 24######################################################################
25# subroutines 25# subroutines
26 26
27about() { 27about() {
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
38startup() { 38startup() {
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
48stopit() { 48stopit() {
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
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
@@ -18,33 +18,33 @@
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
21OPIE_SH=/opt/QtPalmtop/bin/opie-sh 21OPIE_SH=$OPIEDIR/bin/opie-sh
22 22
23###################################################################### 23######################################################################
24# subroutines 24# subroutines
25 25
26about() { 26about() {
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
39startup() { 39startup() {
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
@@ -55,7 +55,7 @@ startup() {
55} 55}
56 56
57stopit() { 57stopit() {
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