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