istoreos: add curl wrapper for fallback on failed

This commit is contained in:
jjm2473 2022-11-28 13:38:55 +08:00
parent 918a5b062e
commit b9d7af53e4

View File

@ -0,0 +1,7 @@
#!/bin/sh
if [ -x /rom/usr/bin/curl ]; then
/usr/bin/curl -V >/dev/null 2>&1 && exec /usr/bin/curl "$@"
exec /rom/usr/bin/curl "$@"
fi
exec /usr/bin/curl "$@"