Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorDavid Runge <dvzrv@archlinux.org>2021-03-29 19:24:01 +0200
committerDavid Runge <dvzrv@archlinux.org>2021-03-29 19:26:27 +0200
commit0664efcf3c3317d4876685b3a2618ad7f3e290b0 (patch)
treea85f2e4246fb3ef6d83d1bc4fa4bcd32ba8c3573 /configs
parentd86f8606dcef3a85964fc4656dcdd0e22b87c800 (diff)
Allow redirects for scripts
configs/releng/airootfs/root/.automated_script.sh: Add the `--location` curl parameter (see `man 1 curl`) to allow for curl to retrieve a remote script even if the source is being redirected (e.g. moved permanently) when using the `script=` kernel commandline parameter. Fixes #113
Diffstat (limited to 'configs')
-rwxr-xr-xconfigs/releng/airootfs/root/.automated_script.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/configs/releng/airootfs/root/.automated_script.sh b/configs/releng/airootfs/root/.automated_script.sh
index ed3a924..5c0c316 100755
--- a/configs/releng/airootfs/root/.automated_script.sh
+++ b/configs/releng/airootfs/root/.automated_script.sh
@@ -16,7 +16,7 @@ automated_script ()
script="$(script_cmdline)"
if [[ -n "${script}" && ! -x /tmp/startup_script ]]; then
if [[ "${script}" =~ ^((http|https|ftp)://) ]]; then
- curl "${script}" --retry-connrefused -s -o /tmp/startup_script >/dev/null
+ curl "${script}" --location --retry-connrefused -s -o /tmp/startup_script >/dev/null
rt=$?
else
cp "${script}" /tmp/startup_script