added a couple of packages for mv's desktop
[fai-configs.git] / scripts / DEMO / 10-misc
CommitLineData
2d1f8014 1#! /bin/bash
2
3# (c) Thomas Lange, 2001-2009, lange@debian.org
4
5ifclass XORG && {
6 fcopy -M /etc/X11/xorg.conf
7# [ -n "$VIDEODRIVER" ] || VIDEODRIVER=vesa
8# grep -q %%VIDEODRIVER%% $target/etc/X11/xorg.conf &&
9# perl -pi.orig -pe "s/%%VIDEODRIVER%%/$VIDEODRIVER/" $target/etc/X11/xorg.conf
10}
11
12# add a demo user account
13if ! $ROOTCMD getent passwd demo ; then
14 $ROOTCMD adduser --disabled-login --gecos "fai demo user" demo
15# echo "demo:$ROOTPW" | $ROOTCMD chpasswd --encrypted
16 $ROOTCMD usermod -p "$ROOTPW" demo
17fi