Magellan Linux

Annotation of /branches/init-0_3_3-r1/magellan-initscripts/etc/rc.d/init.d/setclock

Parent Directory Parent Directory | Revision Log Revision Log


Revision 18 - (hide annotations) (download)
Tue Dec 14 01:17:23 2004 UTC (19 years, 5 months ago) by (unknown author)
File size: 439 byte(s)
This commit was manufactured by cvs2svn to create branch
'init-0_3_3-r1'.
1 niro 2 #!/bin/bash
2    
3     #%rlevels: 7:s
4     #%start: 60
5     #%stop:
6    
7     #deps
8     #%needs:
9     #%before:
10     #%after:
11    
12     source /etc/sysconfig/rc
13     source $rc_functions
14     source /etc/rc.config
15    
16     CLOCKPARAMS="--hctosys"
17    
18     case "$CLOCK" in
19     utc)
20     CLOCKPARAMS="$CLOCKPARAMS --utc"
21     ;;
22     local)
23     CLOCKPARAMS="$CLOCKPARAMS --localtime"
24     ;;
25     esac
26    
27     echo -e ${COLOREDSTAR}"Setting clock ..."
28     hwclock $CLOCKPARAMS
29     evaluate_retval
30    
31     update_svcstatus $1
32     splash svc_started "$(basename $0)" 0

Properties

Name Value
svn:executable *