2d1f8014 |
1 | #! /bin/bash |
2 | |
3 | # (c) Thomas Lange, 2001-2009, lange@debian.org |
4 | |
5 | ifclass 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 |
13 | if ! $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 |
17 | fi |