diff options
author | Mike Westerhof <mwester@dls.net> | 2007-06-12 03:58:23 +0000 |
---|---|---|
committer | Mike Westerhof <mwester@dls.net> | 2007-06-12 03:58:23 +0000 |
commit | 54ed40fe0a867be355e1035633a1023911baa14a (patch) | |
tree | 5fdbd4ef61d756f13a1791e3f5948693f1dac8ce /packages/nslu2-binary-only | |
parent | 06f760a54caab8cdf00091450b457591a3402571 (diff) |
Unslung: /usr/bin/mkfs.ext3 - strange script to workaround an mke2fs failure
Diffstat (limited to 'packages/nslu2-binary-only')
-rwxr-xr-x | packages/nslu2-binary-only/unslung-rootfs/mkfs.ext3 | 13 | ||||
-rw-r--r-- | packages/nslu2-binary-only/unslung-rootfs_2.3r63.bb | 7 |
2 files changed, 19 insertions, 1 deletions
diff --git a/packages/nslu2-binary-only/unslung-rootfs/mkfs.ext3 b/packages/nslu2-binary-only/unslung-rootfs/mkfs.ext3 new file mode 100755 index 0000000000..49a88c0e06 --- /dev/null +++ b/packages/nslu2-binary-only/unslung-rootfs/mkfs.ext3 @@ -0,0 +1,13 @@ +#!/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 diff --git a/packages/nslu2-binary-only/unslung-rootfs_2.3r63.bb b/packages/nslu2-binary-only/unslung-rootfs_2.3r63.bb index dab61db94e..23b240debc 100644 --- a/packages/nslu2-binary-only/unslung-rootfs_2.3r63.bb +++ b/packages/nslu2-binary-only/unslung-rootfs_2.3r63.bb @@ -1,7 +1,7 @@ SECTION = "base" COMPATIBLE_MACHINE = "nslu2" -PR = "r18" +PR = "r19" DEPENDS = "nslu2-linksys-libs nslu2-linksys-sambacodepages" @@ -55,6 +55,7 @@ SRC_URI = "http://nslu.sf.net/downloads/nslu2-linksys-ramdisk-2.3r63-2.tar.bz2 \ file://upgrade.htm \ file://telnet.htm \ file://rc.bootbin \ + file://mkfs.ext3 \ " S = "${WORKDIR}/nslu2-linksys-ramdisk-2.3r63" @@ -163,6 +164,10 @@ do_compile () { 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 |