Contents of /trunk/magellan-initscripts/rc/setclock
Parent Directory | Revision Log
Revision 2 -
(show annotations)
(download)
Mon Dec 13 22:52:07 2004 UTC (19 years, 9 months ago) by niro
Original Path: branches/unlabeled-1.1.1/magellan-initscripts/etc/rc.d/init.d/setclock
File size: 468 byte(s)
Mon Dec 13 22:52:07 2004 UTC (19 years, 9 months ago) by niro
Original Path: branches/unlabeled-1.1.1/magellan-initscripts/etc/rc.d/init.d/setclock
File size: 468 byte(s)
imported.
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/sysconfig/clock |
15 | source /etc/rc.config |
16 | |
17 | CLOCKPARAMS="--hctosys" |
18 | |
19 | case "$CLOCK" in |
20 | utc) |
21 | CLOCKPARAMS="$CLOCKPARAMS --utc" |
22 | ;; |
23 | local) |
24 | CLOCKPARAMS="$CLOCKPARAMS --localtime" |
25 | ;; |
26 | esac |
27 | |
28 | echo -e ${COLOREDSTAR}"Setting clock ..." |
29 | hwclock $CLOCKPARAMS |
30 | evaluate_retval |
31 | |
32 | update_svcstatus $1 |
33 | splash svc_started "$(basename $0)" 0 |
Properties
Name | Value |
---|---|
svn:executable | * |