summaryrefslogtreecommitdiffstats
path: root/draklive-install.xsetup
blob: 8804f5a17d9b9dd817c8dc7be02d4a4464897205 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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
  reboot
fi