Contents of /trunk/magellan-initscripts/rc/setclock
Parent Directory | Revision Log
Revision 13 -
(show annotations)
(download)
Mon Dec 13 23:46:52 2004 UTC (19 years, 9 months ago) by niro
Original Path: trunk/magellan-initscripts/etc/rc.d/init.d/setclock
File size: 439 byte(s)
Mon Dec 13 23:46:52 2004 UTC (19 years, 9 months ago) by niro
Original Path: trunk/magellan-initscripts/etc/rc.d/init.d/setclock
File size: 439 byte(s)
removed cruft.
1 | #!/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 | * |