--- /dev/null
+#!/bin/sh
+#
+# Fix obscure problem - redirect stdout iff mkfs.ext3
+# is being invoked by the Linksys GUI format utility.
+#
+u=`/bin/pidof utility.cgi`
+if [ ! -f "/tmp/Preparing" -o "x${u}" = "x" -o \
+ "y${1}" != "y-m" -o "z${2}" != "z1" ]
+then
+ /usr/bin/mke2fs -j $@
+else
+ /usr/bin/mke2fs -j $@ >/tmp/mkfs.$$.log
+fi
SECTION = "base"
COMPATIBLE_MACHINE = "nslu2"
-PR = "r18"
+PR = "r19"
DEPENDS = "nslu2-linksys-libs nslu2-linksys-sambacodepages"
file://upgrade.htm \
file://telnet.htm \
file://rc.bootbin \
+ file://mkfs.ext3 \
"
S = "${WORKDIR}/nslu2-linksys-ramdisk-2.3r63"
rm -f ${S}/bin/busybox
ln -s slingbox ${S}/bin/busybox
+ # Add in the kludge to fix the strange Linksys GUI format problem.
+ rm -f ${S}/usr/bin/mkfs.ext3
+ install -m 755 ${WORKDIR}/mkfs.ext3 ${S}/usr/bin/mkfs.ext3
+
# No reason not to have a home directory for root...
mkdir -p ${S}/root
chmod 755 ${S}/root