summaryrefslogtreecommitdiff
path: root/noncore/tools/opie-sh/scripts/service_manager.sh
Side-by-side diff
Diffstat (limited to 'noncore/tools/opie-sh/scripts/service_manager.sh') (more/less context) (show whitespace changes)
-rwxr-xr-xnoncore/tools/opie-sh/scripts/service_manager.sh6
1 files changed, 3 insertions, 3 deletions
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
@@ -10,32 +10,32 @@
# any later version.
#
# This program is distributed in the hope that it will be useful,
# 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.
#
# 20020524-1 - added icon to statusinfo...
# 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>"
) | $OPIE_SH -t service-manager -f &
SCREENCLEAN=$!
sleep 1
}
cleanup() {
kill $SCREENCLEAN
rm -f /tmp/qcop-msg-service_manager.sh
@@ -53,25 +53,25 @@ get_action() {
-1) echo unexpected input detected, exiting.
exit ;;
0) ACTION=start ;;
1) ACTION=stop ;;
2) ACTION=status ;;
esac
}
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
most init scripts that come with
familiar ...<p>
perhaps it will be replaced with
something more useful in the future...
EOT
}