From 96dfe5eef41ced0743a735c446b78a48e2b5d8cb Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Fri, 18 Oct 2013 01:25:18 +0300 Subject: [PATCH] initscripts/sysvinit: rtc hacks --- .../files/omap3-pandora/save-rtc.sh | 8 ++++++ recipes/initscripts/initscripts_1.0.bb | 2 +- .../sysvinit/omap3-pandora/rcS-default | 26 +++++++++++++++++++ recipes/sysvinit/sysvinit_2.86.bb | 2 +- 4 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 recipes/initscripts/files/omap3-pandora/save-rtc.sh create mode 100644 recipes/sysvinit/sysvinit/omap3-pandora/rcS-default diff --git a/recipes/initscripts/files/omap3-pandora/save-rtc.sh b/recipes/initscripts/files/omap3-pandora/save-rtc.sh new file mode 100644 index 0000000000..05cb2c8237 --- /dev/null +++ b/recipes/initscripts/files/omap3-pandora/save-rtc.sh @@ -0,0 +1,8 @@ +#! /bin/sh + +# on pandora, system time drifting has been reported, suspected to be related to +# low power modes, so don't save +#/etc/init.d/hwclock.sh stop + +# Update the timestamp +date +%2m%2d%2H%2M%Y > /etc/timestamp diff --git a/recipes/initscripts/initscripts_1.0.bb b/recipes/initscripts/initscripts_1.0.bb index 2c0689ffc8..49f658f31a 100644 --- a/recipes/initscripts/initscripts_1.0.bb +++ b/recipes/initscripts/initscripts_1.0.bb @@ -4,7 +4,7 @@ PRIORITY = "required" DEPENDS = "makedevs" RDEPENDS = "makedevs" LICENSE = "GPL" -PR = "r117" +PR = "r118" SRC_URI = "file://functions \ file://halt \ diff --git a/recipes/sysvinit/sysvinit/omap3-pandora/rcS-default b/recipes/sysvinit/sysvinit/omap3-pandora/rcS-default new file mode 100644 index 0000000000..263e21664c --- /dev/null +++ b/recipes/sysvinit/sysvinit/omap3-pandora/rcS-default @@ -0,0 +1,26 @@ +# +# Defaults for the boot scripts in /etc/rcS.d +# + +# Time files in /tmp are kept in days. +TMPTIME=0 +# Set to yes if you want sulogin to be spawned on bootup +SULOGIN=no +# Set to no if you want to be able to login over telnet/rlogin +# before system startup is complete (as soon as inetd is started) +DELAYLOGIN=no +# Set UTC=yes if your system clock is set to UTC (GMT), and UTC=no if not. +# on pandora, scripts rely on UTC +UTC=yes +# Set VERBOSE to "no" if you would like a more quiet bootup. +VERBOSE=no +# Set EDITMOTD to "no" if you don't want /etc/motd to be editted automatically +EDITMOTD=no +# Whether to fsck root on boot +ENABLE_ROOTFS_FSCK=no +# Set FSCKFIX to "yes" if you want to add "-y" to the fsck at startup. +FSCKFIX=yes +# Set TICKADJ to the correct tick value for this specific machine +#TICKADJ=10000 +# Enable caching in populate-volatile.sh +VOLATILE_ENABLE_CACHE=yes diff --git a/recipes/sysvinit/sysvinit_2.86.bb b/recipes/sysvinit/sysvinit_2.86.bb index 2cf27b26b0..8e964a18f2 100644 --- a/recipes/sysvinit/sysvinit_2.86.bb +++ b/recipes/sysvinit/sysvinit_2.86.bb @@ -2,7 +2,7 @@ DESCRIPTION = "System-V like init." SECTION = "base" LICENSE = "GPLv2+" HOMEPAGE = "http://freshmeat.net/projects/sysvinit/" -PR = "r58" +PR = "r59" # USE_VT and SERIAL_CONSOLE are generally defined by the MACHINE .conf. # Set PACKAGE_ARCH appropriately. -- 2.39.5