summaryrefslogtreecommitdiffstats
path: root/draklive-install.xsetup
blob: fb80bd51f27a6798ffab9c1b3915b1b81c44acc4 (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
  shutdown now
fi