summaryrefslogtreecommitdiff
path: root/noncore/tools/opie-sh/scripts/service_manager.sh
Unidiff
Diffstat (limited to 'noncore/tools/opie-sh/scripts/service_manager.sh') (more/less context) (ignore 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 @@
10# any later version. 10# any later version.
11# 11#
12# This program is distributed in the hope that it will be useful, 12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of 13# but WITHOUT ANY WARRANTY; without even the implied warranty of
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#
17# 20020524-1 - added icon to statusinfo... 17# 20020524-1 - added icon to statusinfo...
18# 20020518-1 - optix 18# 20020518-1 - optix
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."
33 echo "<p>" 33 echo "<p>"
34 ) | $OPIE_SH -t service-manager -f & 34 ) | $OPIE_SH -t service-manager -f &
35 SCREENCLEAN=$! 35 SCREENCLEAN=$!
36 sleep 1 36 sleep 1
37} 37}
38 38
39cleanup() { 39cleanup() {
40 kill $SCREENCLEAN 40 kill $SCREENCLEAN
41 rm -f /tmp/qcop-msg-service_manager.sh 41 rm -f /tmp/qcop-msg-service_manager.sh
@@ -53,25 +53,25 @@ get_action() {
53 -1) echo unexpected input detected, exiting. 53 -1) echo unexpected input detected, exiting.
54 exit ;; 54 exit ;;
55 0) ACTION=start ;; 55 0) ACTION=start ;;
56 1) ACTION=stop ;; 56 1) ACTION=stop ;;
57 2) ACTION=status ;; 57 2) ACTION=status ;;
58 esac 58 esac
59} 59}
60 60
61status_disclaimer() { 61status_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
69 because it is not supported by the 69 because it is not supported by the
70 most init scripts that come with 70 most init scripts that come with
71 familiar ...<p> 71 familiar ...<p>
72 72
73 perhaps it will be replaced with 73 perhaps it will be replaced with
74 something more useful in the future... 74 something more useful in the future...
75EOT 75EOT
76} 76}
77 77