From 91635afc52c96467e0e994d03284ab65db40526f Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Tue, 15 Aug 2006 22:58:42 +0000 Subject: Extended configuration mechanism (get tgz files instead of simple machine-setup for advanced config), tested with normal toolset and busybox, small bugfixes like: fixed duplicate entries to machine-setup, small ash-sh related bug, ... git-svn-id: http://svn.openslx.org/svn/openslx/trunk@300 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initrd/initrd-stuff/init | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'initrd/initrd-stuff/init') diff --git a/initrd/initrd-stuff/init b/initrd/initrd-stuff/init index 9a1dd9a7..a2560b3f 100755 --- a/initrd/initrd-stuff/init +++ b/initrd/initrd-stuff/init @@ -2,12 +2,12 @@ # Description: main script for new type of initial ramdisk for # linux diskless clients version 4 # -# Author(s): Dirk von Suchodoletz , 24-07-2006 +# Author(s): Dirk von Suchodoletz , 15-08-2006 # # Copyright: (c) 2006 - RZ Universitaet Freiburg -# (c) 2006 - odlx.org project +# (c) 2006 - opendiskless.org project # -# Version: 0.2.6d +# Version: 0.2.6e # functions common for all distros, messages contains all error and info # output @@ -53,7 +53,8 @@ COWSIZE="50%" RWDIR=/dev/shm NFSRO="nfs" -# run pre init script and user defined preinit.local (see Howto) +# run pre init script and user defined preinit.local, copied by mkdxsinitrd +# from /var/lib/opendiskless/config/... in stage2 preinit [ -x /bin/preinit.local ] && /bin/preinit.local @@ -470,9 +471,11 @@ waitfor /tmp/svcfg 20000 || error "$init_errsw" # should be killed if started within init killall -9 dhcpcd dhclient pump 2>/dev/null cp /etc/machine-setup /mnt/etc -#bash -# post init for some distro specific + +# post init for some distro specific (fixme!! more elegant solution) postinit +[ -s /initramfs/postinit.local ] && \ + cp /initramfs/postinit.local /bin/postinit.local [ -x /bin/postinit.local ] && /bin/postinit.local # start a debug shell in higher debug levels -- cgit v1.2.3-55-g7522