# 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 functions for (Open)SuSE 10.3 which differ from functions # defined in general SuSE base definitions ... General changes should be done # there, version specific changes for the 10.3 go here. # display manager configuration config_kdm () { # use different kdmrc than default, since 10.2 in /opt/kde/... echo "XDMOPTIONS=\"-config ${D_KDMRCPATH}/kdmrc\"" \ >> /mnt/etc/sysconfig/displaymanager config_dm_entry yes # write configuration file with general config from /etc/functions config_kdm_template } # config nfsv4 config_nfsv4 () { if [ "x$start_nfsv4" = "xyes" ]; then testmkd /mnt/var/lib/nfs/rpc_pipefs sed -e "s,NFS_SECURITY_GSS=.*,NFS_SECURITY_GSS=\"yes\"," \ -e "s,NFS4_SUPPORT=.*,NFS4_SUPPORT=\"yes\"," \ -i /mnt/etc/sysconfig/nfs echo -e "rpc_pipefs\t/var/lib/nfs/rpc_pipefs rpc_pipefs defaults\t 0 0\n\ nfsd\t\t/proc/fs/nfsd\tnfsd\t\tdefaults\t 0 0" >>/tmp/fstab echo -e "\t# stuff needed for nfsv4\n\tmount -t rpc_pipefs rpc_pipefs \ /var/lib/nfs/rpc_pipefs\n\tmount -t nfsd nfsd /proc/fs/nfsd" \ >>/mnt/etc/${D_INITDIR}/boot.slx # portmap is required for any NFS config_portmap rllinker "idmapd" 14 8 rllinker "gssd" 15 7 fi } # set up keytable (function run in hwautocfg) # kbd runlevel link is in the list of initial runlevel scripts (see # suse/config-10.2 file) keytable () { # remove unneeded components from the startscript sed -e "/wanted keytable/,/^fi$/d;/load usb drivers/,/^esac$/d" \ -i /mnt/etc/${D_INITDIR}/kbd sed -e "s,KEYTABLE=.*,KEYTABLE=\"${KEYTABLE}\"," \ -i /mnt/etc/${D_SYSCONFDIR}/keyboard rllinker kbd 1 20 } # consolefont and language (function run in hwautocfg) consolefont () { sed -e "s,RC_LANG=.*,RC_LANG=\"${LANG}\" # added in initrd," \ -i /mnt/etc/${D_SYSCONFDIR}/language } # Xorg variable settings. Lots of stuff changed since 10.2 displayvars () { Files='\tModulePath\t"/etc/X11/modules"\n \tModulePath\t"/usr/lib/xorg/modules"\n \tFontPath\t"/usr/share/fonts/misc/:unscaled"\n \tFontPath\t"/usr/share/fonts/75dpi/:unscaled"\n \tFontPath\t"/usr/share/fonts/100dpi/:unscaled"' synapticsdrv="/usr/lib/xorg/modules/input/synaptics_drv.so" }