SOURCES: timezone.init - implement status

glen glen at pld-linux.org
Mon Dec 17 18:37:39 CET 2007


Author: glen                         Date: Mon Dec 17 17:37:39 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- implement status

---- Files affected:
SOURCES:
   timezone.init (1.8 -> 1.9) 

---- Diffs:

================================================================
Index: SOURCES/timezone.init
diff -u SOURCES/timezone.init:1.8 SOURCES/timezone.init:1.9
--- SOURCES/timezone.init:1.8	Tue May 22 00:27:42 2007
+++ SOURCES/timezone.init	Mon Dec 17 18:37:33 2007
@@ -72,8 +72,15 @@
   disable)
 	disable
 	;;
+  status)
+	if [ -n "$ZONE_INFO_AREA" ]; then
+		nls 'Time zone configured to (%s, %s)' "$ZONE_INFO_AREA" "$TIME_ZONE"
+	else
+		nls 'Time zone configured to (%s)' "$TIME_ZONE"
+	fi
+	;;
   *)
-	msg_usage "$0 {start|stop|restart|reload|disable}"
+	msg_usage "$0 {start|stop|restart|reload|disable|status}"
 	exit 3
 esac
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/timezone.init?r1=1.8&r2=1.9&f=u



More information about the pld-cvs-commit mailing list