mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2025-12-12 23:58:50 +01:00
Make Instant Play actually work with buildroot's ash
This commit is contained in:
parent
ea2c4a1941
commit
903bc28e64
@ -3,15 +3,15 @@
|
|||||||
# Write quick load file args
|
# Write quick load file args
|
||||||
QUICK_LOAD_FILE=/root/quick_load_cmd
|
QUICK_LOAD_FILE=/root/quick_load_cmd
|
||||||
|
|
||||||
printf "" > $QUICK_LOAD_FILE
|
echo -n "" > $QUICK_LOAD_FILE
|
||||||
|
|
||||||
whitespace="[[:space:]]"
|
|
||||||
for i in "$@"; do
|
for i in "$@"; do
|
||||||
if [[ "$i" != $whitespace && "$i" != "SDL_NOMOUSE=1" ]]
|
if $(echo "$i" | egrep -q '[[:space:]]'); then
|
||||||
then
|
|
||||||
i=\""$i"\"
|
# Add quotes around arguments containing spaces
|
||||||
|
echo -n "\"$i\" " >> ${QUICK_LOAD_FILE}
|
||||||
|
else
|
||||||
|
echo -n "$i " >> ${QUICK_LOAD_FILE}
|
||||||
fi
|
fi
|
||||||
printf "%s" "$i " >> $QUICK_LOAD_FILE
|
|
||||||
done
|
done
|
||||||
printf "\n" >> $QUICK_LOAD_FILE
|
echo "" >> ${QUICK_LOAD_FILE}
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user