#!/bin/sh
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