For such a script s805_autoscript necessary, that would be the content platform_ini had such a form
Variables in the script and the file platform_ini interrelated.
------------------------------------------------------------
# Parse command line arguments
for arg in $(cat /proc/cmdline); do
case $arg in
hdmitx=*)
hdmitx="${arg#*=}"
;;
hdmimode=*)
hdmimode="${arg#*=}"
;;
BOOT_IMAGE=*)
BOOT_IMAGE="${arg#*=}"
;;
boot=*)
boot="${arg#*=}"
;;
disk=*)
disk="${arg#*=}"
;;
esac
done
# Add information where to run LibreELEC from
if [ -z "$BOOT_IMAGE" -o -z "$boot" -o -z "$disk" ]; then
cmdline=$(cat /proc/cmdline)
cmdline="$cmdline BOOT_IMAGE=/dev/boot boot=/dev/system disk=/dev/data"
echo "$cmdline" > /proc/cmdline
fi
---------------------------------------------------------------