浏览代码

Support busybox wget

Bohan Yang 6 年之前
父节点
当前提交
c696ffd36b
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      netboot.sh

+ 3 - 1
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