summaryrefslogtreecommitdiff
path: root/configs/releng/airootfs/root/.automated_script.sh
diff options
context:
space:
mode:
Diffstat (limited to 'configs/releng/airootfs/root/.automated_script.sh')
-rwxr-xr-xconfigs/releng/airootfs/root/.automated_script.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/configs/releng/airootfs/root/.automated_script.sh b/configs/releng/airootfs/root/.automated_script.sh
index 81a98a1..ed3a924 100755
--- a/configs/releng/airootfs/root/.automated_script.sh
+++ b/configs/releng/airootfs/root/.automated_script.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
script_cmdline ()
{
@@ -15,8 +15,8 @@ automated_script ()
local script rt
script="$(script_cmdline)"
if [[ -n "${script}" && ! -x /tmp/startup_script ]]; then
- if [[ "${script}" =~ ^http:// || "${script}" =~ ^ftp:// ]]; then
- wget "${script}" --retry-connrefused -q -O /tmp/startup_script >/dev/null
+ if [[ "${script}" =~ ^((http|https|ftp)://) ]]; then
+ curl "${script}" --retry-connrefused -s -o /tmp/startup_script >/dev/null
rt=$?
else
cp "${script}" /tmp/startup_script