summaryrefslogtreecommitdiffstats
path: root/initramfs/mkdxsinitrd
diff options
context:
space:
mode:
authorDirk von Suchodoletz2006-10-29 16:56:42 +0100
committerDirk von Suchodoletz2006-10-29 16:56:42 +0100
commit6235099689a961eecf9f72af847c6d5b7c962fd7 (patch)
treeddb25c06fe73e5a9addd0cca623b3549d84f3b6e /initramfs/mkdxsinitrd
parent* improved error-handling in case of problems with the db-backend. (diff)
downloadcore-6235099689a961eecf9f72af847c6d5b7c962fd7.tar.gz
core-6235099689a961eecf9f72af847c6d5b7c962fd7.tar.xz
core-6235099689a961eecf9f72af847c6d5b7c962fd7.zip
Changed init for using a variable @@@serverip@@@ instead of fixed
defined server ip, introduced a function checkip to translate @@@serverip@@@ into the serverip the client determined itself. That helps in more dynamic environments with servers using more than one ip address. Added a special slx specific configuration file read in stage3 - /etc/sysconfig/slxconfig. For the (deprecated) mkdxsinitrd an ugly hack for creating a general slx config file instead of "patching" the stage3 init is implemented ... git-svn-id: http://svn.openslx.org/svn/openslx/trunk@487 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/mkdxsinitrd')
-rwxr-xr-xinitramfs/mkdxsinitrd3
1 files changed, 3 insertions, 0 deletions
diff --git a/initramfs/mkdxsinitrd b/initramfs/mkdxsinitrd
index df701573..6d3dbc60 100755
--- a/initramfs/mkdxsinitrd
+++ b/initramfs/mkdxsinitrd
@@ -171,6 +171,9 @@ else
-e "s,@@@COMETCEXCL@@@,${COMETCEXCL},g" \
-e "s,@@@DATE@@@,${DATE},g;/^#[^!].*/d" \
initrd-stuff/${FILENAME} >> ${INSTDIR}/${FILENAME}
+ # ugly hack for creating a general slx config file instead of "patching"
+ # the stage3 init
+ echo -e "slxconf_date=${DATE}\nslxconf_kernver=${KERNVER}\nslxconf_listnwmod=\"${NWMODULES}\"\nslxconf_distro=${DISTRO}-${DISTRO_VER}" > ${INSTDIR}/etc/sysconfig/slxconfig
[ -x busybox -a "$use_busybox" = 1 ] && sed -e "s,^#!/bin/sh,#!/bin/ash," \
-i ${INSTDIR}/${FILENAME}
fi