diff options
Diffstat (limited to 'initrd/distro-specs/ubuntu/functions-5.10')
-rw-r--r-- | initrd/distro-specs/ubuntu/functions-5.10 | 34 |
1 files changed, 13 insertions, 21 deletions
diff --git a/initrd/distro-specs/ubuntu/functions-5.10 b/initrd/distro-specs/ubuntu/functions-5.10 index 14d7e236..6567f14b 100644 --- a/initrd/distro-specs/ubuntu/functions-5.10 +++ b/initrd/distro-specs/ubuntu/functions-5.10 @@ -2,7 +2,7 @@ # linux diskless clients (executed within initial # ramdisk after genconfig) # -# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 23-03-2006 +# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 24-03-2006 # Nico Dietrich # Felix Endres # @@ -22,8 +22,7 @@ preinit () { } postinit () { - # A command seems to be necessary here - echo "" + : } # AUS SuSE-9.3 @@ -253,21 +252,21 @@ config_bt () { # 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_mkbootld () { -case "$1" in +d_mkrlscript () { +local switch=$1 +local name=$2 +local info=$3 +case "$switch" in init) - echo -e "#!/bin/sh\n# skeleton of /etc/${D_INITDIR}/boot.ld written \ -from $0" >/mnt/etc/${D_INITDIR}/boot.ld - echo -e '\n\ncase "$1" in\n start)' \ - >>/mnt/etc/${D_INITDIR}/boot.ld - echo -e '\techo -n "Running post configuration required by initrd"' \ - >>/mnt/etc/${D_INITDIR}/boot.ld - chmod u+x /mnt/etc/${D_INITDIR}/boot.ld + echo -e "#!/bin/sh\n# skeleton of /etc/${D_INITDIR}/$name written \ +from $0" >/mnt/etc/${D_INITDIR}/$name + echo -e "\n\ncase \"\$1\" in\n start)\techo -n \"$info\"" \ + >>/mnt/etc/${D_INITDIR}/$name + chmod u+x /mnt/etc/${D_INITDIR}/$name ;; close) echo -e "\t;;\n stop)\n\t;;\nesac\nexit 0" \ - >>/mnt/etc/${D_INITDIR}/boot.ld - + >>/mnt/etc/${D_INITDIR}/$name ;; esac } @@ -279,13 +278,6 @@ config_nscd () { # start vmware config_vmware () { -echo -e "#! /bin/sh\n#\n# /etc/${D_INITDIR}/vmware-prep\n\ -# file generated by $0 within initial ramdisk\n\ -# hier fehlt noch der uebliche Ubuntu Startskript header" \ - >> /mnt/etc/${D_INITDIR}/vmware-prep -cat /etc/vmware-prep >> /mnt/etc/${D_INITDIR}/vmware-prep -echo -e "# und der Abschluss" >> /mnt/etc/${D_INITDIR}/vmware-prep -chmod u+x /mnt/etc/${D_INITDIR}/vmware-prep rllinker "vmware-prep" "18" "02" rllinker "vmware" "20" "02" } |