Add distribution check script
This commit is contained in:
parent
7568fb93ef
commit
bb74287f66
|
@ -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
|
Loading…
Reference in New Issue