summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-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