From: gobo72 Date: Tue, 21 Aug 2012 23:59:54 +0000 (+0000) Subject: Plus besoin du script setclock car le kernel lit automatiquement la valeur du rtc... X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=0d0d7090b3b9f64c6ca0c6708b2f4c73f4551689;p=hvlinux.git Plus besoin du script setclock car le kernel lit automatiquement la valeur du rtc au démarrage, et l'écrit à la mise hors-tension. --- diff --git a/stage1/bootscripts/setclock b/stage1/bootscripts/setclock deleted file mode 100755 index cce76cd..0000000 --- a/stage1/bootscripts/setclock +++ /dev/null @@ -1,41 +0,0 @@ -#!/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 $? diff --git a/stage1/install-bootscripts b/stage1/install-bootscripts index e248388..4dbff41 100755 --- a/stage1/install-bootscripts +++ b/stage1/install-bootscripts @@ -9,7 +9,7 @@ EOF # 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