]> git.pld-linux.org Git - packages/tzdata.git/commitdiff
- implement status
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 17 Dec 2007 17:37:33 +0000 (17:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    timezone.init -> 1.9

timezone.init

index b65be3504a96e732fe946337b93254d9fddbe806..58c1e634b3bf8c20cf7f3e4934048e6f877ed461 100644 (file)
@@ -72,8 +72,15 @@ case "$1" in
   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
 
This page took 0.125335 seconds and 4 git commands to generate.