Removing wget in favor of curl

configs/releng/airootfs/root/.automated_script.sh:
Replacing wget with curl for the use-case of downloading a
pre-specified remote startup script (changing flags where needed).

configs/releng/packages.x86_64:
Removing wget from the list of installed packages, as
.automated_script.sh was the only reason for it being installed.

Closes #16
This commit is contained in:
David Runge 2020-06-23 21:32:03 +02:00
parent 372a6f9b2f
commit 9b49621f78
No known key found for this signature in database
GPG Key ID: 7258734B41C31549
2 changed files with 1 additions and 2 deletions

View File

@ -16,7 +16,7 @@ automated_script ()
script="$(script_cmdline)" script="$(script_cmdline)"
if [[ -n "${script}" && ! -x /tmp/startup_script ]]; then if [[ -n "${script}" && ! -x /tmp/startup_script ]]; then
if [[ "${script}" =~ ^((http|https|ftp)://) ]]; then if [[ "${script}" =~ ^((http|https|ftp)://) ]]; then
wget "${script}" --retry-connrefused -q -O /tmp/startup_script >/dev/null curl "${script}" --retry-connrefused -s -o /tmp/startup_script >/dev/null
rt=$? rt=$?
else else
cp "${script}" /tmp/startup_script cp "${script}" /tmp/startup_script

View File

@ -71,7 +71,6 @@ usbutils
vi vi
vim-minimal vim-minimal
vpnc vpnc
wget
wireless-regdb wireless-regdb
wireless_tools wireless_tools
wpa_supplicant wpa_supplicant