From e100fb72e8892c30ab435086c3a4e7bdce216d23 Mon Sep 17 00:00:00 2001 From: Joerg Schirottke Date: Wed, 16 May 2012 13:49:10 +0200 Subject: update hotfixes --- .../lib/live/config/901-hotfixes | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/config/chroot_local-includes/lib/live/config/901-hotfixes b/config/chroot_local-includes/lib/live/config/901-hotfixes index 967b85b..5cf3b53 100755 --- a/config/chroot_local-includes/lib/live/config/901-hotfixes +++ b/config/chroot_local-includes/lib/live/config/901-hotfixes @@ -1,5 +1,29 @@ #!/bin/sh +Hotfixes () +{ +if [ -e /var/lib/live/config/hotfixes ] +then + return +fi +echo -n " hotfixes" +Configure_hotfixes +} + +Configure_hotfixes () +{ +# Reading kernel command line +for _PARAMETER in ${_CMDLINE}; do + case "${_PARAMETER}" in + live-config.timezone=*|timezone=*) + LIVE_TIMEZONE="${_PARAMETER#*timezone=}" + ;; + live-config.username=*|username=*) + LIVE_USERNAME="${_PARAMETER#*username=}" + ;; + esac +done + # fix timezone if [ -n "${LIVE_TIMEZONE}" ]; then echo "${LIVE_TIMEZONE}" > /etc/timezone @@ -24,3 +48,7 @@ rm -f /etc/default/console-setup . /etc/default/locale dpkg-reconfigure console-setup -fnoninteractive +touch /var/lib/live/config/hotfixes +} + +Hotfixes -- cgit v1.0