HEX
Server: Apache/2.4.63 (Unix)
System: Linux Synopilou92 4.4.302+ #72806 SMP Mon Jul 21 23:16:00 CST 2025 x86_64
User: pilou92 (1026)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: //usr/syno/sbin/make_system_fs.sh
#!/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 "$@"