Detect Synology 7.2+

This commit is contained in:
Geoff 2024-11-05 00:19:07 -08:00 committed by GitHub
commit 1557355f36
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -313,7 +313,10 @@ if [ -z "${DISTRO_INSTALL}" ]; then
elif [ -f /etc/synoinfo.conf ]; then
DISTRO="synology"
if grep -q "major=\"7\"" /etc/VERSION; then
DISTRO="synology-dsm7"
DISTRO="synology-dsm72"
if [ grep -q "minor=\"[01]\"" /etc/VERSION ]; then
DISTRO="synology-dsm7"
fi
fi
DISTRO_INSTALL="synopkg install"
else