#! /bin/bash

# (c) Thomas Lange, 2001-2009, lange@debian.org

ifclass XORG && {
    fcopy -M /etc/X11/xorg.conf
#    [ -n "$VIDEODRIVER" ] || VIDEODRIVER=vesa
#    grep -q %%VIDEODRIVER%% $target/etc/X11/xorg.conf &&
#    perl -pi.orig -pe "s/%%VIDEODRIVER%%/$VIDEODRIVER/" $target/etc/X11/xorg.conf
}

# add a demo user account
if ! $ROOTCMD getent passwd demo ; then
    $ROOTCMD adduser --disabled-login --gecos "fai demo user" demo
#    echo "demo:$ROOTPW" | $ROOTCMD chpasswd --encrypted
    $ROOTCMD usermod -p "$ROOTPW" demo
fi
