From 3df06db9e6fd268c7d234be05b01a2303dc0f7ba Mon Sep 17 00:00:00 2001 From: zecke Date: Sat, 14 Aug 2004 12:05:39 +0000 Subject: Do not hardcode /opt/QtPalmtop but use $OPIEDIR --- 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 @@ # 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 "" +( echo "" echo "

diskfree

how much space is left ?
" echo "

" 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 @@ # 20020517-1 - nicer fullscreen, added about, tried icon # -OPIE_SH=/opt/QtPalmtop/bin/opie-sh +OPIE_SH=$OPIEDIR/bin/opie-sh ###################################################################### # subroutines about() { - ( echo "" + ( echo "" echo "

About

" echo "This little App should make it possible for you to " echo "easily mount and unmount filesystems from /etc/fstab" @@ -39,7 +39,7 @@ about() { } beforemount() { - ( echo "" + ( echo "" echo "

mount or unmount $MOUNTPOINT ?

" echo "excerpt from MOUNT(8) manpage:

" echo "All files accessible in a Unix system are arranged in one @@ -100,7 +100,7 @@ if [ "$MOUNTPOINT" = "" ] then echo "ugly error...." | $OPIE_SH -f ; cleanup fi -( echo "" +( echo "" echo "

Output of $ACTION $MOUNTPOINT :

" echo "
"
   $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 @@
 # 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 ""
+(	echo ""
 	echo "

Hostlist


" HOSTLIST=`cat $CFG | grep -v '#'` for HOST in $HOSTLIST @@ -46,7 +46,7 @@ cleanup() { } about() { - ( echo "" + ( echo "" echo "

About

" echo "This little App should make it possible for you to " 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 @@ # 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 "" + ( echo "" echo "

About

" echo "This little util sends the TERM signal " echo "to the specified process or process group. " @@ -60,7 +60,7 @@ select_process PROCESS=`echo $PROCESS | cut -b -4` -( echo "" +( echo "" echo "

Output of kill $PROCESS

" echo "
"
   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 @@
 # 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 ""
+(	echo ""
 	echo "

Refresh successful!


" echo the launcher has been refreshed. echo @@ -36,9 +36,9 @@ 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 @@ -17,14 +17,14 @@ # 20020526-1a - initial release... # -OPIE_SH=/opt/QtPalmtop/bin/opie-sh +OPIE_SH=$OPIEDIR/bin/opie-sh INITPATH=/etc/init.d ###################################################################### # subroutines about() { - ( echo "" + ( echo "" echo "

About

" echo "This little App should make it possible for you to " echo "easily have a look at some of the syslogs. " @@ -74,7 +74,7 @@ cat /proc/kmsg >/tmp/log.$$ & PID=$! sleep 2 kill $PID -( echo "" +( echo "" echo "

/proc/kmsg

" cat /tmp/log.$$ ) | $OPIE_SH -t kmsg -f @@ -87,7 +87,7 @@ cat /proc/ksyms >/tmp/log.$$ & PID=$! sleep 2 kill $PID -( echo "" +( echo "" echo "

/proc/ksyms

" cat /tmp/log.$$ ) | $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 @@ # 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 "$@" 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 @@ -19,10 +19,10 @@ # 20020524-1 - initial working release planned # -OPIE_SH=opie-sh +OPIE_SH=$OPIEDIR/bin/opie-sh about() { - ( echo "" + ( echo "" echo "

About

" echo "This little App is for changing the location setting" echo "for your wireless card.
" 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 @@ # 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 @@ -68,7 +68,7 @@ show_dirs() { } about() { - ( echo "" + ( echo "" echo "

About

" echo "This little App should make it possible for you to " 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 @@ # 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 "" + ( echo "" echo "

About

" echo "This little App should make it possible for you to " echo "easily start and stop services in /etc/init.d." @@ -62,7 +62,7 @@ status_disclaimer() { # tell that init scripts are not too standard # cat | $OPIE_SH -f < +

status has been disabled

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 @@ # 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 "" + ( echo "" echo "

About

" echo "This little App should make it easy for you to " echo "activate / deactivate the stowaway keyboard (on ipaq)" @@ -36,7 +36,7 @@ about() { } startup() { - echo "" > /tmp/sout + echo "" > /tmp/sout echo "

stowaway up

" >> /tmp/sout modprobe h3600_stowaway >> /tmp/sout cat /dev/stowaway & @@ -46,7 +46,7 @@ startup() { } stopit() { - ( echo "" + ( echo "" echo "

stowaway down

" read THECAT < /tmp/stowcatpid 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 @@ # 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 "" + ( echo "" echo "

About

" echo "This little App should make it easy for you to " echo "activate / deactivate the usbnet-driver (on ipaq)" echo "

" 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 "" + ( echo "" echo "

usbnet up

" modprobe usb-eth ) 2>&1 | $OPIE_SH -t Output -f $OPIE_SH -m -I -t "Usbnet Control" -M "Please connect the
ipaq to the cradle
and press OK" - ( echo "" + ( echo "" echo "

usbnet up

" ifconfig usbf up 192.168.0.1 netmask 255.255.255.0 @@ -55,7 +55,7 @@ startup() { } stopit() { - ( echo "" + ( echo "" echo "

usbnet down

" ifconfig usbf down sleep 1 -- cgit v0.9.0.2