Add distribution check script

This commit is contained in:
Janek Bevendorff 2014-09-15 18:01:16 +02:00
parent 7568fb93ef
commit bb74287f66
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
#!/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