Support busybox wget

pull/8/head
Bohan Yang 6 years ago committed by GitHub
parent 10f4400deb
commit c696ffd36b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      netboot.sh

@ -466,8 +466,10 @@ if [ "$DEBI_DRY_RUN" != true ]; then
wget "$DEBI_BASE_URL/linux" "$DEBI_BASE_URL/initrd.gz" wget "$DEBI_BASE_URL/linux" "$DEBI_BASE_URL/initrd.gz"
elif command_exists curl; then elif command_exists curl; then
curl -O "$DEBI_BASE_URL/linux" -O "$DEBI_BASE_URL/initrd.gz" 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 else
echo_stderr 'Error: wget/curl not found.' echo_stderr 'Error: wget/curl/busybox not found.'
exit 1 exit 1
fi fi

Loading…
Cancel
Save