summaryrefslogtreecommitdiff
Side-by-side diff
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
@@ -16,14 +16,14 @@
#
# 20020524-5 - bugfix
# 20020524-1 - initial release
-OPIE_SH=/opt/QtPalmtop/bin/opie-sh
+OPIE_SH=$OPIEDIR/bin/opie-sh
# there must be a better way to do this with sed, but i had no time
# time to look into this yet...
-( 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>"
echo "<p><table>"
df -h \
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
@@ -21,15 +21,15 @@
# 20020517-2 - fixed output bug
# 20020517-1 - nicer fullscreen, added about, tried icon
#
-OPIE_SH=/opt/QtPalmtop/bin/opie-sh
+OPIE_SH=$OPIEDIR/bin/opie-sh
######################################################################
# subroutines
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>"
echo "This little App should make it possible for you to "
echo "easily mount and unmount filesystems from /etc/fstab"
echo "<p>"
@@ -38,9 +38,9 @@ about() {
sleep 1
}
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>"
echo "<b>excerpt from MOUNT(8) manpage:</b><p>"
echo "All files accessible in a Unix system are arranged in one
big tree, the file hierarchy, rooted at <b>/</b>. These files
@@ -99,9 +99,9 @@ get_action
if [ "$MOUNTPOINT" = "" ]
then echo "ugly error...." | $OPIE_SH -f ; cleanup
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>"
echo "<pre>"
$ACTION $MOUNTPOINT 2>&1
echo "</pre><p>"
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
@@ -17,13 +17,13 @@
# 20020524-1 - icon to hostlist
# 20020517-1 - added icon, changed name in launcher
#
-CFG=/opt/QtPalmtop/share/config/hostlist.cfg
+CFG=$OPIEDIR/share/config/hostlist.cfg
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>"
HOSTLIST=`cat $CFG | grep -v '#'`
for HOST in $HOSTLIST
do
@@ -45,9 +45,9 @@ cleanup() {
rm -f /tmp/qcop-msg-hostlist.sh
}
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>"
echo "This little App should make it possible for you to "
echo "check some hosts for availability."
echo "<p>"
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
@@ -17,15 +17,15 @@
# 20020524-1 - code optix
# 20020519-1 - added icon to output
# 20020517-1 - nicer fullscreen, added about, tried icon
-OPIE_SH=/opt/QtPalmtop/bin/opie-sh
+OPIE_SH=$OPIEDIR/bin/opie-sh
######################################################################
# subroutines
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>"
echo "This little util sends the TERM signal "
echo "to the specified process or process group. "
echo "The TERM signal will kill processes which "
@@ -59,9 +59,9 @@ select_process
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>"
echo "<pre>"
kill $PROCESS 2>&1
echo "</pre><p>"
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
@@ -13,12 +13,12 @@
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-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>"
echo the launcher has been refreshed.
echo
echo this is useful if you installed packages using ipk instead of
@@ -35,10 +35,10 @@ cleanup() {
#####################################################################
#
# main
-/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)"
launcher_refresh
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
@@ -16,16 +16,16 @@
#
# 20020526-1a - initial release...
#
-OPIE_SH=/opt/QtPalmtop/bin/opie-sh
+OPIE_SH=$OPIEDIR/bin/opie-sh
INITPATH=/etc/init.d
######################################################################
# subroutines
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>"
echo "This little App should make it possible for you to "
echo "easily have a look at some of the syslogs. "
echo "<p>"
@@ -73,9 +73,9 @@ case $LOGMETHOD in
cat /proc/kmsg >/tmp/log.$$ &
PID=$!
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>"
cat /tmp/log.$$
) | $OPIE_SH -t kmsg -f
rm -f /tmp/$$
@@ -86,9 +86,9 @@ cleanup ;;
cat /proc/ksyms >/tmp/log.$$ &
PID=$!
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>"
cat /tmp/log.$$
) | $OPIE_SH -t ksyms -f
rm -f /tmp/$$
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 @@
#!/bin/sh
# opie-sh-ssh-askpass -- ssh-askpass utility using opie-sh
-OPIE_SH=opie-sh
+OPIE_SH=$OPIEDIR/bin/opie-sh
exec $OPIE_SH -i -p -t "OpenSSH" -g -L "<SMALL>$@" 2>/dev/null
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
@@ -18,12 +18,12 @@
# 20020526-1 - rudimental but working
# 20020524-1 - initial working release planned
#
-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>"
echo "This little App is for changing the location setting"
echo "for your wireless card. <br>"
echo "actually it only starts /etc/init.d/[home|work] and can"
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
@@ -16,10 +16,10 @@
#
# 20020517-1 - added icon, changed name in launcher
#
-CFG=/opt/QtPalmtop/share/config/rsyncme.cfg
-OPIE_SH=opie-sh
+CFG=$OPIEDIR/share/config/rsyncme.cfg
+OPIE_SH=$OPIEDIR/bin/opie-sh
update_cfg() {
# check if dir is in CFG and if not add it
if [ "`grep -c $DIR $CFG`" = "0" ]
@@ -67,9 +67,9 @@ show_dirs() {
| $OPIE_SH -t "Got directories" -f
}
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>"
echo "This little App should make it possible for you to "
echo "easily choose the wanted options for an rsync process."
echo "<p>"
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
@@ -18,16 +18,16 @@
# 20020518-1 - optix
# 20020517-1 - added about and fullscreen
#
-OPIE_SH=/opt/QtPalmtop/bin/opie-sh
+OPIE_SH=$OPIEDIR/bin/opie-sh
INITPATH=/etc/init.d
######################################################################
# subroutines
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>"
echo "This little App should make it possible for you to "
echo "easily start and stop services in /etc/init.d."
echo "<p>"
@@ -61,9 +61,9 @@ get_action() {
status_disclaimer() {
# tell that init scripts are not too standard
#
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>
the status service has been disabled
because it is not supported by the
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
@@ -18,15 +18,15 @@
# 20020524-1 - code beautification, added icons and reset
# 20020517-2 - bugfixed fullscreen, added info about ifconfig
# 20020517-1 - added about, fullscreen and icon
-OPIE_SH=/opt/QtPalmtop/bin/opie-sh
+OPIE_SH=$OPIEDIR/bin/opie-sh
######################################################################
# subroutines
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>"
echo "This little App should make it easy for you to "
echo "activate / deactivate the stowaway keyboard (on ipaq)"
echo "<p>"
@@ -35,9 +35,9 @@ about() {
sleep 1
}
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
modprobe h3600_stowaway >> /tmp/sout
cat /dev/stowaway &
echo $! > /tmp/stowcatpid
@@ -45,9 +45,9 @@ startup() {
rm /tmp/sout
}
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>"
read THECAT < /tmp/stowcatpid
kill $THECAT
rmmod h3600_stowaway
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
@@ -17,35 +17,35 @@
# 20020524-1 - code beautification, added icons and reset
# 20020517-2 - bugfixed fullscreen, added info about ifconfig
# 20020517-1 - added about, fullscreen and icon
-OPIE_SH=/opt/QtPalmtop/bin/opie-sh
+OPIE_SH=$OPIEDIR/bin/opie-sh
######################################################################
# subroutines
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>"
echo "This little App should make it easy for you to "
echo "activate / deactivate the usbnet-driver (on ipaq)"
echo "<p>"
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 &
SCREENCLEAN=$!
sleep 1
}
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>"
modprobe usb-eth
) 2>&1 | $OPIE_SH -t Output -f
$OPIE_SH -m -I -t "Usbnet Control" -M "Please connect the<br>ipaq to the cradle<br>and press OK"
- ( 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>"
ifconfig usbf up 192.168.0.1 netmask 255.255.255.0
) 2>&1 | $OPIE_SH -t Output -f
@@ -54,9 +54,9 @@ startup() {
fi
}
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>"
ifconfig usbf down
sleep 1
rmmod usb-eth