rs-backup-suite/server/usr/bin/rs-detect-distribution

14 lines
207 B
Bash
Executable File

#!/bin/sh
# Check if lsb_release exists
command -v lsb_release > /dev/null 2>&1
if [ $? -eq 0 ]; then
lsb_release -is
elif [ -e /etc/synoinfo.conf ]; then
echo "Synology"
else
echo "unknown"
exit 1
fi