From c696ffd36baf336a9102acf77f2e71cba677d9ef Mon Sep 17 00:00:00 2001 From: Bohan Yang Date: Sun, 31 May 2020 20:40:26 +0900 Subject: [PATCH] Support busybox wget --- netboot.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/netboot.sh b/netboot.sh index 7d1dc56..f5c3302 100644 --- a/netboot.sh +++ b/netboot.sh @@ -466,8 +466,10 @@ if [ "$DEBI_DRY_RUN" != true ]; then wget "$DEBI_BASE_URL/linux" "$DEBI_BASE_URL/initrd.gz" elif command_exists curl; then curl -O "$DEBI_BASE_URL/linux" -O "$DEBI_BASE_URL/initrd.gz" + elif command_exists busybox; then + busybox wget "$DEBI_BASE_URL/linux" "$DEBI_BASE_URL/initrd.gz" else - echo_stderr 'Error: wget/curl not found.' + echo_stderr 'Error: wget/curl/busybox not found.' exit 1 fi