From 9b49621f78465cf912f853e1884e3f7446497229 Mon Sep 17 00:00:00 2001
From: David Runge <dvzrv@archlinux.org>
Date: Tue, 23 Jun 2020 21:32:03 +0200
Subject: [PATCH] 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
---
 configs/releng/airootfs/root/.automated_script.sh | 2 +-
 configs/releng/packages.x86_64                    | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/configs/releng/airootfs/root/.automated_script.sh b/configs/releng/airootfs/root/.automated_script.sh
index aaf55830..ce29d73e 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
-            wget "${script}" --retry-connrefused -q -O /tmp/startup_script >/dev/null
+            curl "${script}" --retry-connrefused -s -o /tmp/startup_script >/dev/null
             rt=$?
         else
             cp "${script}" /tmp/startup_script
diff --git a/configs/releng/packages.x86_64 b/configs/releng/packages.x86_64
index 37fea542..c288d04c 100644
--- a/configs/releng/packages.x86_64
+++ b/configs/releng/packages.x86_64
@@ -71,7 +71,6 @@ usbutils
 vi
 vim-minimal
 vpnc
-wget
 wireless-regdb
 wireless_tools
 wpa_supplicant
-- 
GitLab