summaryrefslogtreecommitdiffstats
path: root/draklive-install.xsetup
blob: 9e314825d240bb58b2f3abd476f2c9a9f60f2d5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# to be sourced
if grep -q '\binstall\b' /proc/cmdline; then
  if [ -r /etc/locale.conf -o -r /etc/sysconfig/i18n ]; then
    unset LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY \
      LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT \
      LC_IDENTIFICATION
    if [ -r /etc/locale.conf ]; then
      . /etc/locale.conf
    else
      . /etc/sysconfig/i18n
    fi
    export  LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY \
      LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT \
      LC_IDENTIFICATION
  fi
  /usr/sbin/draklive-install
fi