author | zecke <zecke> | 2004-08-14 12:05:39 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-08-14 12:05:39 (UTC) |
commit | 3df06db9e6fd268c7d234be05b01a2303dc0f7ba (patch) (side-by-side diff) | |
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 @@ -19,3 +19,3 @@ -OPIE_SH=/opt/QtPalmtop/bin/opie-sh +OPIE_SH=$OPIEDIR/bin/opie-sh @@ -24,3 +24,3 @@ OPIE_SH=/opt/QtPalmtop/bin/opie-sh -( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/fsmounter.png>" +( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/fsmounter.png>" echo "<h3>diskfree</h3> how much space is left ?<br>" 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 @@ -24,3 +24,3 @@ -OPIE_SH=/opt/QtPalmtop/bin/opie-sh +OPIE_SH=$OPIEDIR/bin/opie-sh @@ -30,3 +30,3 @@ OPIE_SH=/opt/QtPalmtop/bin/opie-sh about() { - ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/fsmounter.png>" + ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/fsmounter.png>" echo "<h3>About</h3>" @@ -41,3 +41,3 @@ about() { beforemount() { - ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/fsmounter.png>" + ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/fsmounter.png>" echo "<h3>mount or unmount $MOUNTPOINT ?</h3>" @@ -102,3 +102,3 @@ fi -( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/fsmounter.png>" +( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/fsmounter.png>" echo "<h3>Output of $ACTION $MOUNTPOINT :</h3>" 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 @@ -20,3 +20,3 @@ -CFG=/opt/QtPalmtop/share/config/hostlist.cfg +CFG=$OPIEDIR/share/config/hostlist.cfg OPIE_SH=opie-sh @@ -24,3 +24,3 @@ OPIE_SH=opie-sh hostlist() { -( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/hostlist.png>" +( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/hostlist.png>" echo "<h3>Hostlist</h3><br>" @@ -48,3 +48,3 @@ cleanup() { about() { - ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/hostlist.png>" + ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/hostlist.png>" echo "<h3>About</h3>" 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 @@ -20,3 +20,3 @@ -OPIE_SH=/opt/QtPalmtop/bin/opie-sh +OPIE_SH=$OPIEDIR/bin/opie-sh @@ -26,3 +26,3 @@ OPIE_SH=/opt/QtPalmtop/bin/opie-sh about() { - ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/killproc.png>" + ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/killproc.png>" echo "<h3>About</h3>" @@ -62,3 +62,3 @@ PROCESS=`echo $PROCESS | cut -b -4` -( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/killproc.png>" +( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/killproc.png>" echo "<h3>Output of kill $PROCESS</h3>" 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 @@ -16,6 +16,6 @@ -OPIE_SH=opie-sh +OPIE_SH=$OPIEDIR/bin/opie-sh launcher_refresh() { -( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/launcher_refresh.png>" +( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/launcher_refresh.png>" echo "<h3>Refresh successful!</h3><br>" @@ -38,5 +38,5 @@ cleanup() { -/opt/QtPalmtop/bin/qcop QPE/TaskBar "reloadInputMethods()" -#/opt/QtPalmtop/bin/qcop QPE/System "restart()" -/opt/QtPalmtop/bin/qcop QPE/System "linkChanged(QString)" +$OPIEDIR/bin/qcop QPE/TaskBar "reloadInputMethods()" +#$OPIEDIR/bin/qcop QPE/System "restart()" +$OPIEDIR/bin/qcop QPE/System "linkChanged(QString)" 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 @@ -19,3 +19,3 @@ -OPIE_SH=/opt/QtPalmtop/bin/opie-sh +OPIE_SH=$OPIEDIR/bin/opie-sh INITPATH=/etc/init.d @@ -26,3 +26,3 @@ INITPATH=/etc/init.d about() { - ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/logviewer.png>" + ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/logviewer.png>" echo "<h3>About</h3>" @@ -76,3 +76,3 @@ sleep 2 kill $PID -( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/logviewer.png>" +( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/logviewer.png>" echo "<h3>/proc/kmsg</h3>" @@ -89,3 +89,3 @@ sleep 2 kill $PID -( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/logviewer.png>" +( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/logviewer.png>" echo "<h3>/proc/ksyms</h3>" 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 @@ -4,3 +4,3 @@ -OPIE_SH=opie-sh +OPIE_SH=$OPIEDIR/bin/opie-sh 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 @@ -21,6 +21,6 @@ -OPIE_SH=opie-sh +OPIE_SH=$OPIEDIR/bin/opie-sh about() { - ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/qtwavelan.png>" + ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/qtwavelan.png>" echo "<h3>About</h3>" 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 @@ -19,4 +19,4 @@ -CFG=/opt/QtPalmtop/share/config/rsyncme.cfg -OPIE_SH=opie-sh +CFG=$OPIEDIR/share/config/rsyncme.cfg +OPIE_SH=$OPIEDIR/bin/opie-sh @@ -70,3 +70,3 @@ show_dirs() { about() { - ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/rsyncme.png>" + ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/rsyncme.png>" echo "<h3>About</h3>" 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 @@ -21,3 +21,3 @@ -OPIE_SH=/opt/QtPalmtop/bin/opie-sh +OPIE_SH=$OPIEDIR/bin/opie-sh INITPATH=/etc/init.d @@ -28,3 +28,3 @@ INITPATH=/etc/init.d about() { - ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/service_manager.png>" + ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/service_manager.png>" echo "<h3>About</h3>" @@ -64,3 +64,3 @@ status_disclaimer() { cat | $OPIE_SH -f <<EOT -<img src=/opt/QtPalmtop/pics/opie-sh-scripts/service_manager.png> +<img src=$OPIEDIR/pics/opie-sh-scripts/service_manager.png> <h3>status has been disabled</h3> 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 @@ -21,3 +21,3 @@ -OPIE_SH=/opt/QtPalmtop/bin/opie-sh +OPIE_SH=$OPIEDIR/bin/opie-sh @@ -27,3 +27,3 @@ OPIE_SH=/opt/QtPalmtop/bin/opie-sh about() { - ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/stowctrl.png>" + ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/stowctrl.png>" echo "<h3>About</h3>" @@ -38,3 +38,3 @@ about() { startup() { - echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/stowctrl.png>" > /tmp/sout + echo "<img src=$OPIEDIR/pics/opie-sh-scripts/stowctrl.png>" > /tmp/sout echo "<h3>stowaway up</h3>" >> /tmp/sout @@ -48,3 +48,3 @@ startup() { stopit() { - ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/stowctrl.png>" + ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/stowctrl.png>" echo "<h3>stowaway down</h3>" 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 @@ -20,3 +20,3 @@ -OPIE_SH=/opt/QtPalmtop/bin/opie-sh +OPIE_SH=$OPIEDIR/bin/opie-sh @@ -26,3 +26,3 @@ OPIE_SH=/opt/QtPalmtop/bin/opie-sh about() { - ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/usbnetctrl.png>" + ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/usbnetctrl.png>" echo "<h3>About</h3>" @@ -32,3 +32,3 @@ about() { echo "To use it at first, you need to change the ifconfig" - echo "line in /opt/QtPalmtop/bin/usbnetctrl.sh." + echo "line in $OPIEDIR/bin/usbnetctrl.sh." ) | $OPIE_SH -t "usbnet control" -f & @@ -39,3 +39,3 @@ about() { startup() { - ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/usbnetctrl.png>" + ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/usbnetctrl.png>" echo "<h3>usbnet up</h3>" @@ -46,3 +46,3 @@ startup() { - ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/usbnetctrl.png>" + ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/usbnetctrl.png>" echo "<h3>usbnet up</h3>" @@ -57,3 +57,3 @@ startup() { stopit() { - ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/usbnetctrl.png>" + ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/usbnetctrl.png>" echo "<h3>usbnet down</h3>" |