1 |
--- smeserver-bridge-interface-0.1/root/etc/rc.d/init.d/bridge.display_stop_start 2009-05-29 09:28:14.000000000 +0200 |
2 |
+++ smeserver-bridge-interface-0.1/root/etc/rc.d/init.d/bridge 2009-05-29 09:34:37.000000000 +0200 |
3 |
@@ -133,24 +133,36 @@ |
4 |
|
5 |
case "$1" in |
6 |
start) |
7 |
+ echo -n $"Starting Bridge Service: " |
8 |
start |
9 |
- success; echo |
10 |
- ;; |
11 |
+ RETVAL=$? |
12 |
+ ;; |
13 |
stop) |
14 |
+ echo -n $"Stoping Bridge Service: " |
15 |
stop |
16 |
- success; echo |
17 |
- ;; |
18 |
+ RETVAL=$? |
19 |
+ ;; |
20 |
restart) |
21 |
+ echo -n $"Restarting Bridge Service: " |
22 |
stop && start |
23 |
- success; echo |
24 |
- ;; |
25 |
+ RETVAL=$? |
26 |
+ ;; |
27 |
adjust) |
28 |
+ echo -n $"Restarting Bridge Service: " |
29 |
stop && start |
30 |
- success; echo |
31 |
- ;; |
32 |
+ RETVAL=$? |
33 |
+ ;; |
34 |
*) |
35 |
echo "Usage: $0 start|stop|restart" |
36 |
;; |
37 |
esac |
38 |
|
39 |
-exit 0 |
40 |
+if [ $RETVAL -eq 0 ]; then |
41 |
+ echo_success |
42 |
+else |
43 |
+ echo_failure |
44 |
+fi |
45 |
+echo |
46 |
+ |
47 |
+exit $RETVAL |
48 |
+ |