# Copyright (c) 2003 - 2006 - RZ Uni Freiburg # Copyright (c) 2006, 2007 - OpenSLX GmbH # # This program/file 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 under http://openslx.org # # Configuration script for Ubuntu 6.10 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="" } # distro specific function called from servconfig script config_distro () { # add the halt link to the 0 and 6 runlevel directories ln -sf ../init.d/halt /mnt/etc/rc0.d/S90halt ln -sf ../init.d/reboot /mnt/etc/rc6.d/S90reboot sed -i '/halt.*-i/s/ -i / /' /mnt/etc/init.d/halt # set default runlevel # how that is done for upstart?? } # 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 }