summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Schirottke <master@kanotix.com>2012-05-16 13:49:10 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2012-05-17 21:43:34 +0200
commite100fb72e8892c30ab435086c3a4e7bdce216d23 (patch)
tree4d1a59cebbb122c1c9bffbccc1646060f04a927b
parente1de455197b0505f0eb8ce8f8bdcafb53129cff3 (diff)
downloadkanotix-e100fb72e8892c30ab435086c3a4e7bdce216d23.zip
kanotix-e100fb72e8892c30ab435086c3a4e7bdce216d23.tar.gz
update hotfixes
-rwxr-xr-xconfig/chroot_local-includes/lib/live/config/901-hotfixes28
1 files changed, 28 insertions, 0 deletions
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