From 8ef5f631155976ea843b7d9337b8d8f968aff0d9 Mon Sep 17 00:00:00 2001 From: parazyd Date: Mon, 10 Jul 2017 16:07:00 +0200 Subject: [PATCH] add hooks for devuan-live --- blends/devuan-live/hooks/fix-lang.sh | 37 ++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 blends/devuan-live/hooks/fix-lang.sh diff --git a/blends/devuan-live/hooks/fix-lang.sh b/blends/devuan-live/hooks/fix-lang.sh new file mode 100755 index 0000000..182b185 --- /dev/null +++ b/blends/devuan-live/hooks/fix-lang.sh @@ -0,0 +1,37 @@ +#!/bin/sh + +# Custom hook script, modified from: +# +## live-config(7) - System Configuration Components +## Copyright (C) 2006-2014 Daniel Baumann +## +## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING. +## This is free software, and you are welcome to redistribute it +## under certain conditions; see COPYING for details. + +set -x + + + # Reading kernel command line + for _PARAMETER in ${LIVE_CONFIG_CMDLINE} + do + case "${_PARAMETER}" in +# live-config.username=*|username=*) +# LIVE_USERNAME="${_PARAMETER#*username=}" +# ;; + locales=*) + LIVE_LANG="${_PARAMETER#*locales=}" + ;; + + esac + done + + +if [ -n "$LIVE_LANG" ] ; then + echo "LIVE_LANG is $LIVE_LANG @@@@@" + + cat > /etc/profile.d/tt_locale.sh <