summaryrefslogtreecommitdiffstats
path: root/initrd/initrd-stuff/init
diff options
context:
space:
mode:
authorDirk von Suchodoletz2006-08-16 00:58:42 +0200
committerDirk von Suchodoletz2006-08-16 00:58:42 +0200
commit91635afc52c96467e0e994d03284ab65db40526f (patch)
treea650865536bb684d9478b771d6272dccd9e93876 /initrd/initrd-stuff/init
parentSimple install mechanism for directory structure setup (make install) (diff)
downloadcore-91635afc52c96467e0e994d03284ab65db40526f.tar.gz
core-91635afc52c96467e0e994d03284ab65db40526f.tar.xz
core-91635afc52c96467e0e994d03284ab65db40526f.zip
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
Diffstat (limited to 'initrd/initrd-stuff/init')
-rwxr-xr-xinitrd/initrd-stuff/init15
1 files changed, 9 insertions, 6 deletions
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 <dirk@goe.net>, 24-07-2006
+# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 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