blob: 49a88c0e065200b02cc8dab49940b4cdadaa0665 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
|