Magellan Linux

Diff of /trunk/initscripts/sysvinit/rc/setclock

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

revision 3 by niro, Mon Dec 13 22:52:07 2004 UTC revision 781 by niro, Mon Dec 22 22:01:15 2008 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.6 2008-12-22 22:01:15 niro Exp $
3    
4  #%rlevels: 7:s  #%rlevels: 7:s
5  #%start: 60  #%start: 60
# Line 9  Line 10 
10  #%before:  #%before:
11  #%after:  #%after:
12    
13  source /etc/sysconfig/rc  source /etc/conf.d/rc
14  source $rc_functions  source ${rc_functions}
 #source /etc/sysconfig/clock  
15  source /etc/rc.config  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.3  
changed lines
  Added in v.781