HEX
Server: Apache/2.4.63 (Unix)
System: Linux TOMS-220NAS 4.4.302+ #86009 SMP Wed Nov 26 18:19:17 CST 2025 x86_64
User: flavio87 (1026)
PHP: 8.3.27
Disabled: NONE
Upload Files
File: //usr/syno/lib/systemd/generators/syno-bootup-type-generator
#!/bin/sh

if [ -f /run/syno-bootup-type ]; then
	exit 0
fi

GetBootupType()
{
	if [ -f /var/.UpgradeBootup ]; then
		if [ -f /.old_patch_info/VERSION ]; then
			if [ -f /.updater ]; then
				echo Migrate
			else
				echo SystemUpdate
			fi
		else
			echo FreshInstall
		fi
	elif [ -f /var/.SmallupdateBootup ]; then
		echo NanoUpdate
	else
		echo Normal
	fi
}

GetBootupType >/run/syno-bootup-type