File: 10-misc

package info (click to toggle)
fai 2.8.4sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,284 kB
  • ctags: 176
  • sloc: sh: 3,362; perl: 1,591; makefile: 142
file content (15 lines) | stat: -rwxr-xr-x 544 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/sh

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

ifclass XFREE && {
    fcopy -M /etc/X11/XF86Config   && rm -f $target/etc/X11/XF86Config-4
    fcopy -M /etc/X11/XF86Config-4 && rm -f $target/etc/X11/XF86Config
    [ -n "$videodrv" ] || videodrv=vesa
    grep -q %%VIDEODRV%% $target/etc/X11/XF86Config-4 &&
    perl -pi.orig -pe "s/%%VIDEODRV%%/$videodrv/" $target/etc/X11/XF86Config-4
}

# add a demo user account
$ROOTCMD adduser --disabled-login --gecos "fai demo user" demo
echo "demo:$rootpw" | $ROOTCMD chpasswd --encrypted