summaryrefslogtreecommitdiffstats
path: root/initrd/distro-specs/gentoo
diff options
context:
space:
mode:
authorDirk von Suchodoletz2006-03-27 01:22:18 +0200
committerDirk von Suchodoletz2006-03-27 01:22:18 +0200
commit2c8289173525442e353a713795b44d55368fbc8f (patch)
treea710765d7ab9e78e4b26564b515f6359faca4dd9 /initrd/distro-specs/gentoo
parentensured "ash" compatibility, minor fixes and cleanups, ... (diff)
downloadcore-2c8289173525442e353a713795b44d55368fbc8f.tar.gz
core-2c8289173525442e353a713795b44d55368fbc8f.tar.xz
core-2c8289173525442e353a713795b44d55368fbc8f.zip
fixed ugly bug with ldd library detection, fixed bug for dhcpcd use,
started to integrate gentoo, minor fixes ... git-svn-id: http://svn.openslx.org/svn/openslx/ld4@129 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd/distro-specs/gentoo')
-rw-r--r--initrd/distro-specs/gentoo/config-2005.12
-rw-r--r--initrd/distro-specs/gentoo/functions-2005.152
2 files changed, 38 insertions, 16 deletions
diff --git a/initrd/distro-specs/gentoo/config-2005.1 b/initrd/distro-specs/gentoo/config-2005.1
index 5a544e30..1e47f8ee 100644
--- a/initrd/distro-specs/gentoo/config-2005.1
+++ b/initrd/distro-specs/gentoo/config-2005.1
@@ -39,7 +39,7 @@ D_BINDMNT="# spielspass fuer splash"
D_INITDIR="/init.d"
D_INITBOOTD="/runlevels/boot"
D_RCDIRS="/runlevels/default /runlevels/nonetwork /runlevels/single"
-D_INITSCRIPTS="bootmisc clock modules urandom"
+D_INITSCRIPTS="bootmisc clock urandom consolefont keymaps"
D_XF86CONFFILE="/etc/X11/xorg.conf"
D_XFONTPATH="/usr/share/fonts/*"
D_DEFAULTCOUNTRY="de"
diff --git a/initrd/distro-specs/gentoo/functions-2005.1 b/initrd/distro-specs/gentoo/functions-2005.1
index 6fa20cdd..ddc70fc9 100644
--- a/initrd/distro-specs/gentoo/functions-2005.1
+++ b/initrd/distro-specs/gentoo/functions-2005.1
@@ -1,36 +1,58 @@
+# Description: configuration script for Ubuntu V5.10 to configure
+# linux diskless clients (executed within initial
+# ramdisk after genconfig)
+#
+# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 26-03-2006
+#
+# Copyright: (c) 2006 - RZ Universitaet Freiburg
+#
+# Version: 0.0.1c
+
+# distro specific stuff to initialize
+preinit () {
+ :
+}
+
+postinit () {
+ :
+}
+
# udev service - not checked!
udev_hotplug () {
-local result=0
echo "Starting udev"
-udevstart || result=1
+ln -s /bin/udevd /bin/udevstart && udevstart &
if [ -x /bin/udevd ] ; then
export UDEVD_EXPECTED_SEQNUM=$(cat /sys/kernel/hotplug_seqnum)
export UDEVD_EVENT_TIMEOUT=1
echo "" > /proc/sys/kernel/hotplug
- udevd --daemon || result=1
+ udevd &
else error " udev daemon is not available. Some devices might not \
apprear." nonfatal
fi
-return $result
}
# initialize boot.ld - skript to be executed during early system startup
# (before most of the normal boot init scripts)
# this script should operate like a normal runlevel script
-d_mkbootld () {
-case "$1" in
+# initialize boot.ld - skript to be executed during early system startup
+# (before most of the normal boot init scripts)
+# this script should operate like a normal runlevel script (fixme!!)
+d_mkrlscript () {
+local switch="$1"
+local name="$2"
+local info="$3"
+case "$switch" in
init)
- echo -e "#!/sbin/runskript\n# skeleton of /etc/${D_INITDIR}/boot.ld \
-written from $0" >/mnt/etc/${D_INITDIR}/boot.ld
- echo -e '\n\nstart() {' \
- >>/mnt/etc/${D_INITDIR}/boot.ld
- echo -e '\tebegin "Running post configuration required by initrd"' \
- >>/mnt/etc/${D_INITDIR}/boot.ld
- chmod u+x /mnt/etc/${D_INITDIR}/boot.ld
+ echo -e "#!/sbin/runskript\n# skeleton of /etc/${D_INITDIR}/$name \
+generated by $0" >/mnt/etc/${D_INITDIR}/$name
+ echo -e "\n\nstart() {\tebegin \"$info\"" \
+ >>/mnt/etc/${D_INITDIR}/$name
+ chmod u+x /mnt/etc/${D_INITDIR}/$name
;;
close)
- echo -e "\teend ${?}\n}" \
- >>/mnt/etc/${D_INITDIR}/boot.ld
+ echo -e "\t;;\n stop)\n\t;;\nesac\nexit 0" \
+ >>/mnt/etc/${D_INITDIR}/$name
;;
esac
}
+