30convertfs/convertfs.sh: add check for /usr/bin

Check if /usr is mounted, by checking for /usr/bin
master
Harald Hoyer 2012-02-24 14:54:59 +01:00
parent d18bc9070d
commit 1701d7adc8
1 changed files with 5 additions and 0 deletions

View File

@ -47,6 +47,11 @@ if ! needconvert; then
exit 0 exit 0
fi fi


if [ -e "$ROOT/usr/bin" ]; then
echo "$ROOT/usr/bin does not exist"
exit 1
fi

testfile="$ROOT/.usrmovecheck$$" testfile="$ROOT/.usrmovecheck$$"
rm -f "$testfile" rm -f "$testfile"
> "$testfile" > "$testfile"