]> git.pld-linux.org Git - packages/apport.git/commitdiff
- defc
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 14 Feb 2008 07:24:07 +0000 (07:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apport.init -> 1.2

apport.init

index a6b5d0b343397d98fc806bf437332cde55540da6..0886f8876fae6d8d1ce5edf74be8331688b993a3 100644 (file)
@@ -53,6 +53,7 @@ stop() {
        ok
 }
 
+RETVAL=0
 # See how we were called.
 case "$1" in
   start)
@@ -64,10 +65,10 @@ case "$1" in
   status)
        # FIXME are these the right return values?
        if grep -q 'apport' $PATFILE; then
-               echo $"Apport is enabled."
+               echo "Apport is enabled."
                exit 0
        else
-               echo $"Apport is disabled."
+               echo "Apport is disabled."
                exit 1
        fi
        ;;
@@ -76,9 +77,8 @@ case "$1" in
        start
        ;;
   *)
-       echo $"Usage: $0 {start|stop|status|restart|reload}"
-       exit 1
+       msg_usage "$0 {start|stop|status|restart|reload}"
+       exit 3
 esac
 
-exit 0
-
+exit $RETVAL
This page took 0.06213 seconds and 4 git commands to generate.