From 0d0d7090b3b9f64c6ca0c6708b2f4c73f4551689 Mon Sep 17 00:00:00 2001 From: gobo72 Date: Tue, 21 Aug 2012 23:59:54 +0000 Subject: [PATCH] =?utf8?q?Plus=20besoin=20du=20script=20setclock=20car=20l?= =?utf8?q?e=20kernel=20lit=20automatiquement=20la=20valeur=20du=20rtc=20au?= =?utf8?q?=20d=C3=A9marrage,=20et=20l'=C3=A9crit=20=C3=A0=20la=20mise=20ho?= =?utf8?q?rs-tension.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- stage1/bootscripts/setclock | 41 ------------------------------------- stage1/install-bootscripts | 2 +- 2 files changed, 1 insertion(+), 42 deletions(-) delete mode 100755 stage1/bootscripts/setclock 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 -- 2.20.1