summaryrefslogtreecommitdiffstats
path: root/initramfs/distro-specs/ubuntu/functions-6.06
blob: ca9eed98b093c2e1b68bd89e386def9efd4dc687 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright (c) 2003 - 2006 - RZ Uni Freiburg
# Copyright (c) 2006, 2007 - OpenSLX GmbH
#
# This program is free software distributed under the GPL version 2.
# See http://openslx.org/COPYING
#
# If you have any feedback please consult http://openslx.org/feedback and
# send your feedback to feedback@openslx.org
#
# General information about OpenSLX can be found at http://openslx.org
#
# Configuration script for Ubuntu V6.06 to configure OpenSLX linux stateless
# clients (merged in stage2 with ubuntu/functions-default - and loaded within
# initial ramfs - stage3). It may overwrite settings from the default config
# file (/etc/functions)

# distro specific stuff to initialize
preinit () {
  echo "Creating dhcp user"
  echo "dhcp:x:101:">>/etc/group
  echo "dhcp:x:101:101::/nonexistent:/bin/false" >>/etc/passwd
  # mount/unionfs can not handle the nfsro parameter in Ubuntu 6.06 
  NFSRO=""
}

# set up keytable (function run in hwautocfg)
# fixme: is anything needed here - otherwise remove (and check that a 
# dummy function is present)
keytable () {
# fixme -- use keytable setup script here
:
}

# consolefont and language
consolefont () {
[ "$LANG" == "de_DE@euro" ] && LANG=de_DE.UTF8
sed -e "s,LANGUAGE=.*,LANGUAGE=${LANG},;s,LANG=.*,LANG=${LANG}," \
    -i /mnt/etc/environment
rllinker "console-screen.sh" 31 3
}