#! /bin/sh

# this script is called from the live installer once it finished copying the live
# image. So we only do the minimal changes necessary to reboot into the system

is_usb=0
if test "$1" = usb; then
  is_usb=1
fi

chkconfig sshd on
chkconfig cron on
chkconfig boot.ldconfig on
chkconfig boot.langset off
if test -e /etc/init.d/boot.apparmor; then
  chkconfig boot.apparmor on
fi
if test -e /etc/init.d/boot.compcache; then
   chkconfig boot.compcache off
fi
chkconfig earlysyslog on
chkconfig earlyxdm on
chkconfig auditd on
if test -e /etc/init.d/postfix; then
   chkconfig postfix on
fi
chkconfig stoppreload on

: > /var/run/utmp

# remove live-cd user
userdel tux
# a lot of stuff!
mv /home/tux /home/tux~
