echo "kernel version" >> $VTLOG
$CAT /proc/version >> $VTLOG
+ if [ -d /twres ]; then
+ if $GREP -q 'Phoenix' /init; then
+ echo 'phoenixos'; return
+ fi
+ fi
+
# rhel5/CentOS5 and all other distributions based on them
if $GREP -q 'el5' /proc/version; then
echo 'rhel5'; return
# gentoo
elif $EGREP -q '[Gg]entoo' /proc/version; then
+ if $GREP -q 'daphile' /proc/version; then
+ echo 'daphile'; return
+ fi
+
echo 'gentoo'; return
# TinyCore
elif $GREP -q 'Alpine' /proc/version; then
echo 'alpine'; return
+ elif $GREP -i -q 'PhoenixOS' /proc/version; then
+ echo 'phoenixos'; return
+
# NixOS
elif $GREP -i -q 'NixOS' /proc/version; then
echo 'nixos'; return
+
fi
if [ -e /lib/debian-installer ]; then
echo 'vine'; return
fi
+ if $GREP -q 'hyperbola' /proc/cmdline; then
+ echo 'hyperbola'; return
+ fi
+
+ if $GREP -q 'CRUX' /proc/version; then
+ echo 'crux'; return
+ fi
+
echo "default"
}