summaryrefslogtreecommitdiffstats
path: root/initrd/mkdxsinitrd
diff options
context:
space:
mode:
authorDirk von Suchodoletz2006-07-03 15:37:01 +0200
committerDirk von Suchodoletz2006-07-03 15:37:01 +0200
commit3cec6bc98f6556c1ae50b74fc3c19171f19970ab (patch)
tree32d679060692362fca506391f01c1ceb79d6f434 /initrd/mkdxsinitrd
parentMinor fixes for use of unionfs ... (diff)
downloadcore-3cec6bc98f6556c1ae50b74fc3c19171f19970ab.tar.gz
core-3cec6bc98f6556c1ae50b74fc3c19171f19970ab.tar.xz
core-3cec6bc98f6556c1ae50b74fc3c19171f19970ab.zip
Fixed a pcitable file related bug (for some reason the new version was
not compatible), see HardwareErkennung too. Minor bugs for busybox integration fixed ... git-svn-id: http://svn.openslx.org/svn/openslx/ld4@265 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd/mkdxsinitrd')
-rwxr-xr-xinitrd/mkdxsinitrd8
1 files changed, 6 insertions, 2 deletions
diff --git a/initrd/mkdxsinitrd b/initrd/mkdxsinitrd
index 0f719e2e..6271fa01 100755
--- a/initrd/mkdxsinitrd
+++ b/initrd/mkdxsinitrd
@@ -159,7 +159,7 @@ else
-e "s,@@@COMETCEXCL@@@,${COMETCEXCL},g" \
-e "s,@@@DATE@@@,${DATE},g;/^#[^!].*/d" \
initrd-stuff/${FILENAME} >> ${INSTDIR}/${FILENAME}
- [ -n $use_busybox ] && sed -e "s,/bin/sh,/bin/ash," \
+ [ -x busybox -a "$use_busybox" = 1 ] && sed -e "s,^#!/bin/sh,#!/bin/ash," \
-i ${INSTDIR}/${FILENAME}
fi
fi
@@ -419,7 +419,11 @@ mknod ${INSTDIR}/tmp/kmsg c 1 11 &>/dev/null
mknod ${INSTDIR}/tmp/ctl b 241 255 &>/dev/null
# test for the existance of busybox
-if [ -x busybox -a "$use_busybox" = 1 ] ; then
+[ -x busybox -a "$use_busybox" = 1 ] || {
+ unset use_busybox
+ echo "You wanted to include busybox, but did not provide it in \
+initrd/ directory."; }
+if [ "$use_busybox" ] ; then
cp busybox ${INSTDIR}/bin
for bbins in [ arping ash cat chmod chown chroot cp date \
dd df dmesg echo expr fdisk free hwclock insmod ip \