#!/bin/sh
. /usr/syno/share/mkfs.sh
#
# Please do not use this to create systemfs on md0. Normally it should be
# done in installer.sh with additional conditional checks.
#
run()
{
local dev="$1"; shift
local output=
local ret=
output="$(MakeSystemFS "$dev" 2>&1)"
ret=$?
if [ $ret -eq 0 ]; then
/bin/logger -s -p warning "Success to make fs for $dev"
else
/bin/logger -s -p err "Failed to make fs for $dev, message=[$output]"
fi
return $ret
}
run "$@"