summaryrefslogtreecommitdiffstats
path: root/initrd/initrd-stuff/etc/functions
diff options
context:
space:
mode:
authorDirk von Suchodoletz2006-06-24 22:20:56 +0200
committerDirk von Suchodoletz2006-06-24 22:20:56 +0200
commita0403a95ef0509aee974dfe50d00ef084b6b315e (patch)
treeffe228ff06ac60ad5bdd9cb44bc2ff3600ba6d66 /initrd/initrd-stuff/etc/functions
parentUgly bug in ldd prevents in some cases the renaming of the binary. So (diff)
downloadcore-a0403a95ef0509aee974dfe50d00ef084b6b315e.tar.gz
core-a0403a95ef0509aee974dfe50d00ef084b6b315e.tar.xz
core-a0403a95ef0509aee974dfe50d00ef084b6b315e.zip
Massive changes for distro specific configurations (mkdxsinitrd,
distro-specs/*) ... git-svn-id: http://svn.openslx.org/svn/openslx/ld4@249 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd/initrd-stuff/etc/functions')
-rw-r--r--initrd/initrd-stuff/etc/functions41
1 files changed, 23 insertions, 18 deletions
diff --git a/initrd/initrd-stuff/etc/functions b/initrd/initrd-stuff/etc/functions
index 508fd35e..351a4c6f 100644
--- a/initrd/initrd-stuff/etc/functions
+++ b/initrd/initrd-stuff/etc/functions
@@ -2,7 +2,7 @@
# linux diskless clients (included by init, hwautocfg,
# servconfig, ... within initial ramdisk)
#
-# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 28-05-2006
+# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 23-06-2006
# Felix Endres, 30-04-2006
# Tobias Maier
#
@@ -27,6 +27,10 @@ postinit () {
config_distro () {
:
}
+# udev/hotplug - auto device discovery service
+udev_hotplug () {
+ :
+}
#######################################################################
@@ -694,27 +698,28 @@ case "$country" in
;;
esac
}
-
-######################### dummy functions
-
-preinit () {
- :
-}
-
-postinit () {
- :
+#######################################################################
+# setup initial boot scripts (for most standard distributions, gentoo
+# is to be handled differently)
+initial_boot () {
+for i in ${D_RCDIRS} ${D_INITBOOTD} ; do
+ rm -f /mnt/etc/$i/*
+done
+count=10
+# boot.ld is a special runlevel script generated within initial ramdisk
+# which should be executed before the rest
+for i in boot.ld ${D_INITSCRIPTS}; do
+ count=`expr $count + 1`
+ revcnt=`expr 41 - $count`
+ ln -sf /etc${D_INITDIR}/$i /mnt/etc/${D_INITBOOTD}/S${count}$i
+ ln -sf /etc${D_INITDIR}/$i /mnt/etc/${D_INITBOOTD}/K${revcnt}$i
+done
}
-# distro specific function called from servconfig script
-config_distro () {
- :
-}
+#######################################################################
+# dummy functions
# AUS SuSE-9.3
-# udev/hotplug - auto device discovery service
-udev_hotplug () {
- :
-}
# linking runlevel scripts
rllinker () {