diff options
Diffstat (limited to 'initrd/distro-specs/gentoo/functions-2005.1')
-rw-r--r-- | initrd/distro-specs/gentoo/functions-2005.1 | 52 |
1 files changed, 37 insertions, 15 deletions
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 } + |