Magellan Linux

Diff of /trunk/magellan-initscripts/etc/rc.d/init.d/setclock

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 13 by niro, Mon Dec 13 23:46:52 2004 UTC revision 139 by niro, Sun Jul 3 13:41:12 2005 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2    # $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/setclock,v 1.5 2005-07-03 13:41:12 niro Exp $
3    
4  #%rlevels: 7:s  #%rlevels: 7:s
5  #%start: 60  #%start: 60
# Line 15  source /etc/rc.config Line 16  source /etc/rc.config
16    
17  CLOCKPARAMS="--hctosys"  CLOCKPARAMS="--hctosys"
18    
19  case "$CLOCK" in  case "${CLOCK}" in
20   utc)   utc|UTC)
21   CLOCKPARAMS="$CLOCKPARAMS --utc"   CLOCKPARAMS="${CLOCKPARAMS} --utc"
22   ;;   ;;
23   local)   local|LOCAL)
24   CLOCKPARAMS="$CLOCKPARAMS --localtime"   CLOCKPARAMS="${CLOCKPARAMS} --localtime"
25   ;;   ;;
26  esac  esac
27    
28  echo -e ${COLOREDSTAR}"Setting clock ..."  echo -e ${COLOREDSTAR}"Setting clock ..."
29  hwclock $CLOCKPARAMS  hwclock ${CLOCKPARAMS}
30  evaluate_retval  evaluate_retval
31    
32  update_svcstatus $1  update_svcstatus $1

Legend:
Removed from v.13  
changed lines
  Added in v.139