live-sdk

simple distro kit (livecd edition)
git clone git://parazyd.org/live-sdk.git
Log | Files | Refs | Submodules | README | LICENSE

commit 8ef5f631155976ea843b7d9337b8d8f968aff0d9
parent 061ee3cf1de7c97359d05c39aeb16ca97bcef58a
Author: parazyd <parazyd@dyne.org>
Date:   Mon, 10 Jul 2017 16:07:00 +0200

add hooks for devuan-live

Diffstat:
Ablends/devuan-live/hooks/fix-lang.sh | 37+++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+), 0 deletions(-)

diff --git a/blends/devuan-live/hooks/fix-lang.sh 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 <mail@daniel-baumann.ch> +## +## 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 <<EOF +export LANG=${LIVE_LANG} +export LC_ALL=${LIVE_LANG} +EOF +fi