From 96e5310fb00aeee57cb381f01aa18dafb04e4272 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Wed, 18 Jan 2006 12:22:01 +0000 Subject: Hässlichen Bug bei dhclient IP Konfig. beseitig. Etliche Services hinzugefügt. SuSE Funktionen (functions-suse...) erweitert. git-svn-id: http://svn.openslx.org/svn/openslx/dxs/ld4@18 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initrd/initrd-stuff/bin/servconfig | 48 +++++++++++++++++++++++++++----------- 1 file changed, 35 insertions(+), 13 deletions(-) (limited to 'initrd/initrd-stuff/bin/servconfig') diff --git a/initrd/initrd-stuff/bin/servconfig b/initrd/initrd-stuff/bin/servconfig index a984805e..a18576f1 100755 --- a/initrd/initrd-stuff/bin/servconfig +++ b/initrd/initrd-stuff/bin/servconfig @@ -111,28 +111,28 @@ if [ -n "$bootlocal_script" ]; then $bootlocal_script" >> /mnt/etc/${INITDIR}/boot.local fi -# setup nis configuration if needed -if [ "x$nis_domain" != "x" ] && [ "x$nis_servers" != "x" ] ; then - echo $nis_domain >/mnt/etc/defaultdomain - echo -e "# /etc/yp.conf - file generated by $0:\n\ -#\t$date\n\nypserver "$nis_servers >/mnt/etc/yp.conf - strinfile "+::::::" /mnt/etc/passwd || echo "+::::::" >>/mnt/etc/passwd -fi - ####################################################################### # basic (non network) services -# at daemon +# at daemon - calling distro specific function config_atd config_atd "14" "04" -# configuration of cron services +# configuration of cron services - calling distro specific function +# config_cron (runlevel links, directories, ...) [ "x$crontab_entries" != "x" ] && \ echo -e "$crontab_entries" >> /mnt/etc/crontab config_cron "16" "04" -# acpi and powersave -config_acpi "10" "10" +# setup system log services - distro dependent function config_syslog +config_syslog "02" "20" +# configure dbus - distro dependent function config_dreshal - handle all +# stuff regarding dependent services like dbus, resmgr, hal ... +# (check for runlevel scripts, passwd entries, directories ...) +config_dreshal "03" "18" + +# acpi and powersave - distro dependent function config_acpi +config_acpi "10" "10" ####################################################################### # network(ed) services @@ -237,15 +237,24 @@ if [ "x$start_xdmcp" != "xno" ] ; then if [ "$start_xdmcp" = "yes" ] ; then start_xdmcp=kdm fi + # just ensure lowercase + start_xdmcp=`echo $start_xdmcp|sed -e "y/'KGWXDM'/'kgwxdm'/"` case "$start_xdmcp" in wdm) # anywhere in use!? ;; + kdm) + # config is most probably not common in all distros? + # distro specific function config_kdm + config_kdm + ;; gdm) + # config is most probably not common in all distros? + # distro specific function config_gdm config_gdm ;; *) - # setup xdm + # setup xdm (should be the same over the several distros) echo -e "# /etc/X11/xdm/xdm-config - file generated by\n\ #\t$0: $date\n\nDisplayManager.errorLogFile:\t/var/log/xdm.errors\n\ DisplayManager.pidFile:\t\t/var/run/xdm.pid\n\ @@ -263,7 +272,20 @@ DisplayManager.*.session:\t/etc/X11/xdm/Xsession\n\ DisplayManager.*.reset:\t\t/etc/X11/xdm/Xreset" >/mnt/etc/X11/xdm/xdm-config [ "$xdmcp" = "false" ] && echo -e \ "DisplayManager.requestPort:\t0\n" >>/mnt/etc/X11/xdm/xdm-config + # distro specific function config_xdm (at least for runlevel links) config_xdm ;; esac fi + +####################################################################### +# NIS +# setup nis configuration if needed +if [ "x$nis_domain" != "x" ] && [ "x$nis_servers" != "x" ] ; then + echo $nis_domain >/mnt/etc/defaultdomain + echo -e "# /etc/yp.conf - file generated by $0:\n\ +#\t$date\n\nypserver "$nis_servers >/mnt/etc/yp.conf + # should be last in passwd file + strinfile "+::::::" /mnt/etc/passwd || echo "+::::::" >>/mnt/etc/passwd +fi + -- cgit v1.2.3-55-g7522