File: 10-misc

package info (click to toggle)
fai 3.1.8
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,144 kB
  • ctags: 164
  • sloc: sh: 3,410; perl: 1,780; makefile: 113
file content (14 lines) | stat: -rwxr-xr-x 445 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/bash

# (c) Thomas Lange, 2001-2007, 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
$ROOTCMD adduser --disabled-login --gecos "fai demo user" demo
echo "demo:$ROOTPW" | $ROOTCMD chpasswd --encrypted