aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-03-24 20:55:52 +0000
committerBill Nottingham <notting@redhat.com>1999-03-24 20:55:52 +0000
commit16c2d08386eaf4f2fc72797139e077d90960b91a (patch)
tree14d373c1e57bf44ed99f77cf7fa23680f145df83 /rc.d/rc.sysinit
parentd7c47ea2832999a60d7d6792e20f115b76c45f3e (diff)
downloadinitscripts-16c2d08386eaf4f2fc72797139e077d90960b91a.tar
initscripts-16c2d08386eaf4f2fc72797139e077d90960b91a.tar.gz
initscripts-16c2d08386eaf4f2fc72797139e077d90960b91a.tar.bz2
initscripts-16c2d08386eaf4f2fc72797139e077d90960b91a.tar.xz
initscripts-16c2d08386eaf4f2fc72797139e077d90960b91a.zip
only pass -A to clock if it's /sbin/clock
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit14
1 files changed, 8 insertions, 6 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 1b6a72ec..a95ed0f3 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -318,12 +318,14 @@ case "$UTC" in
;;
esac
-case "$ARC" in
- yes|true)
- CLOCKFLAGS="$CLOCKFLAGS -A";
- CLOCKDEF="$CLOCKDEF (arc)";
- ;;
-esac
+if [ "$CLOCK" = "/sbin/clock" ]; then
+ case "$ARC" in
+ yes|true)
+ CLOCKFLAGS="$CLOCKFLAGS -A";
+ CLOCKDEF="$CLOCKDEF (arc)";
+ ;;
+ esac
+fi
$CLOCK $CLOCKFLAGS
action "Setting clock $CLOCKDEF: `date`" date