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

14 lines
207 B
Plaintext
Raw Normal View History

2014-09-15 16:01:16 +00:00
#!/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