elif $EGREP -q 'archlinux|ARCH' /proc/version; then
echo 'arch'; return
+ # kiosk
+ elif $EGREP -q 'kiosk' /proc/version; then
+ echo 'kiosk'; return
+
# gentoo
elif $EGREP -q '[Gg]entoo' /proc/version; then
echo 'gentoo'; return
echo 'android'; return
fi
+ if $GREP -q 'adelielinux' /proc/version; then
+ echo 'adelie'; return
+ fi
+
+ if $GREP -q 'pmagic' /proc/version; then
+ echo 'pmagic'; return
+ fi
+
+ if $GREP -q 'CDlinux' /proc/cmdline; then
+ echo 'cdlinux'; return
+ fi
+
echo "default"
}
exec $BUSYBOX_PATH/sh
fi
-
-
####################################################################
# #
# Step 4 : Hand over to real init #
fi
cd /
-unset VTOY_PATH VTLOG FIND GREP EGREP CAT AWK SED SLEEP HEAD
+
+unset VTLOG FIND GREP EGREP CAT AWK SED SLEEP HEAD
for vtinit in $user_rdinit /init /sbin/init /linuxrc; do
if [ -d /ventoy_rdroot ]; then
fi
else
if [ -e "$vtinit" ];then
+ if [ -f "$VTOY_PATH/hook/$VTOS/ventoy-before-init.sh" ]; then
+ $BUSYBOX_PATH/sh "$VTOY_PATH/hook/$VTOS/ventoy-before-init.sh"
+ fi
exec "$vtinit"
fi
fi