From 833abaa35c3a77075dd57f3f1a3633d79109a5b4 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 23 Sep 2007 14:46:40 +0200 Subject: Adding live-initramfs 1.91.6-1. --- scripts/live-bottom/01integrity_check | 5 ++++- scripts/live-bottom/02_timezone | 7 ++++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'scripts/live-bottom') diff --git a/scripts/live-bottom/01integrity_check b/scripts/live-bottom/01integrity_check index b855b62..4ac847f 100755 --- a/scripts/live-bottom/01integrity_check +++ b/scripts/live-bottom/01integrity_check @@ -20,4 +20,7 @@ esac # live-initramfs script -grep integrity-check /proc/cmdline && live-md5check /live/image /live/image/md5sum.txt < /dev/tty8 +grep -qs integrity-check /proc/cmdline || exit 0 + +cd /live/image +md5sum -c md5sum.txt < /dev/tty8 diff --git a/scripts/live-bottom/02_timezone b/scripts/live-bottom/02_timezone index 10b634e..dad3cad 100755 --- a/scripts/live-bottom/02_timezone +++ b/scripts/live-bottom/02_timezone @@ -40,6 +40,11 @@ set tzdata/Areas Etc set tzdata/Zones/Etc UTC EOF cp -f /root/usr/share/zoneinfo/UTC /root/etc/localtime -fi +fi + +if [ -n "${UTC}" ] +then + sed -i -e "s/UTC=.*/UTC=${UTC}/" /root/etc/default/rcS +fi log_end_msg -- cgit v1.2.3