summaryrefslogtreecommitdiffstats
path: root/initrd/initrd-stuff/bin/servconfig
diff options
context:
space:
mode:
authorDirk von Suchodoletz2006-01-18 13:22:01 +0100
committerDirk von Suchodoletz2006-01-18 13:22:01 +0100
commit96e5310fb00aeee57cb381f01aa18dafb04e4272 (patch)
tree18d3aa3ead25d79fea4b7042fc8fab052f34af20 /initrd/initrd-stuff/bin/servconfig
parentgdm Konfiguration klappt nun. Kommentare angefuegt ... (diff)
downloadcore-96e5310fb00aeee57cb381f01aa18dafb04e4272.tar.gz
core-96e5310fb00aeee57cb381f01aa18dafb04e4272.tar.xz
core-96e5310fb00aeee57cb381f01aa18dafb04e4272.zip
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
Diffstat (limited to 'initrd/initrd-stuff/bin/servconfig')
-rwxr-xr-xinitrd/initrd-stuff/bin/servconfig48
1 files changed, 35 insertions, 13 deletions
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
+