add hooks for devuan-live

This commit is contained in:
parazyd 2017-07-10 16:07:00 +02:00
parent 061ee3cf1d
commit 8ef5f63115
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
1 changed files with 37 additions and 0 deletions

View File

@ -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