+++ /dev/null
-#!/bin/bash
-
-# setclock
-
-# Source functions library
-source /etc/rc.d/init.d/functions
-
-log_script_name "$0 $*"
-
-# Load clock parameters
-source /etc/sysconfig/clock
-
-case "$UTC" in
- yes|true|1)
- TIME_BASE="--utc"
- ;;
- no|false|0)
- TIME_BASE="--localtime"
- ;;
- *)
- exit ${EXIT_CODE_FAILURE}
- ;;
-esac
-
-# See how we were called
-case "$1" in
- start)
- cmd_run_log_box "Setting system time from hardware clock value" \
- /sbin/hwclock --hctosys "$TIME_BASE"
- ;;
- stop)
- cmd_run_log_box "Saving system time value in hardware clock" \
- /sbin/hwclock --systohc "$TIME_BASE"
- ;;
- *)
- echo "Usage: $0 {start|stop}"
- exit ${EXIT_CODE_FAILURE}
- ;;
-esac
-
-exit $?
# Copying boot scripts
STAGE1_BOOTSCRIPTS="checkfs cleanfs functions halt hostname initlog modules mountfs \
- mountkernfs rc reboot sendsignals setclock swap udev"
+ mountkernfs rc reboot sendsignals swap udev"
mkdir -p ${LFS}/etc/rc.d/init.d
for bootscript in ${STAGE1_BOOTSCRIPTS}; do
install -v -m755 bootscripts/${bootscript} ${LFS}/etc/rc.d/init.d