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/unslung-rootfs | |
parent | 06f760a54caab8cdf00091450b457591a3402571 (diff) |
Unslung: /usr/bin/mkfs.ext3 - strange script to workaround an mke2fs failure
Diffstat (limited to 'packages/nslu2-binary-only/unslung-rootfs')
-rwxr-xr-x | packages/nslu2-binary-only/unslung-rootfs/mkfs.ext3 | 13 |
1 files changed, 13 insertions, 0 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 |