Allow download automated script using TFTP

This commit is contained in:
John Lane 2023-12-07 19:45:58 +00:00
parent 977e0b0fd4
commit 72c274924a

View file

@ -16,7 +16,7 @@ automated_script() {
local script rt
script="$(script_cmdline)"
if [[ -n "${script}" && ! -x /tmp/startup_script ]]; then
if [[ "${script}" =~ ^((http|https|ftp)://) ]]; then
if [[ "${script}" =~ ^((http|https|ftp|tftp)://) ]]; then
# there's no synchronization for network availability before executing this script
printf '%s: waiting for network-online.target\n' "$0"
until systemctl --quiet is-active network-online.target; do