+
+ if $GREP -q 'minios/' /proc/cmdline; then
+ echo 'minios'; return
+ fi
+
+ if $GREP -q 'PVE ' /proc/version; then
+ echo 'pve'; return
+ fi
+
+ if [ -d /porteus ]; then
+ echo 'porteus'; return
+ fi
+
+ if $GREP -q 'porteus' /proc/version; then
+ echo 'porteus'; return
+ fi
+
+ if $GREP -q 'linuxconsole' /proc/version; then
+ echo 'linuxconsole'; return
+ fi
+
+ if $GREP -q 'vyos' /proc/version; then
+ echo 'vyos'; return
+ fi
+
+ if $GREP -q 'kylin' /proc/version; then
+ echo 'kylin'; return
+ fi
+
+ if [ -f /scripts/00-ver ]; then
+ if $GREP -q 'Bliss-OS' /scripts/00-ver; then
+ echo 'bliss'; return
+ fi
+ fi
+
+ if [ -e /opt/kerio ]; then
+ echo 'kerio'; return
+ fi
+
+ if $GREP -q 'mocaccino' /proc/version; then
+ echo 'mocaccino'; return
+ fi
+
+ if $GREP -q '/pyabr/' /proc/cmdline; then
+ echo 'pyabr'; return
+ fi
+
+ if [ -e /devuan-logo.txt ]; then
+ echo 'devuan'; return
+ fi
+
+ if $GREP -q 'truenas' /proc/version; then
+ echo 'truenas'; return
+ fi
+
+ echo 'default'
+}