SOURCES: apport.init - defc

glen glen at pld-linux.org
Thu Feb 14 08:24:12 CET 2008


Author: glen                         Date: Thu Feb 14 07:24:12 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- defc

---- Files affected:
SOURCES:
   apport.init (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/apport.init
diff -u SOURCES/apport.init:1.1 SOURCES/apport.init:1.2
--- SOURCES/apport.init:1.1	Thu Feb 14 01:53:46 2008
+++ SOURCES/apport.init	Thu Feb 14 08:24:07 2008
@@ -53,6 +53,7 @@
 	ok
 }
 
+RETVAL=0
 # See how we were called.
 case "$1" in
   start)
@@ -64,10 +65,10 @@
   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 @@
 	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
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/apport.init?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list