summaryrefslogtreecommitdiff
path: root/recipes/nslu2-binary-only/unslung-rootfs/mkfs.ext3
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/nslu2-binary-only/unslung-rootfs/mkfs.ext3')
-rwxr-xr-xrecipes/nslu2-binary-only/unslung-rootfs/mkfs.ext313
1 files changed, 13 insertions, 0 deletions
diff --git a/recipes/nslu2-binary-only/unslung-rootfs/mkfs.ext3 b/recipes/nslu2-binary-only/unslung-rootfs/mkfs.ext3
new file mode 100755
index 0000000000..49a88c0e06
--- /dev/null
+++ b/recipes/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