From 9dd10752d114fbc911fc715b86e92fa33be8717d Mon Sep 17 00:00:00 2001 From: Nulo Date: Tue, 30 Nov 2021 21:00:15 -0300 Subject: [PATCH] aria2-feeder: usar busybox ash --- archivador.sh | 4 ++-- aria2-feeder/feed-aria2.sh | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/archivador.sh b/archivador.sh index d43bbbf..ed74940 100755 --- a/archivador.sh +++ b/archivador.sh @@ -1,7 +1,7 @@ #!/bin/sh -e -if ! type bash > /dev/null; then - echo "Te falta instalar aria2." +if ! type busybox > /dev/null; then + echo "Te falta instalar busybox." exit 1 fi if ! type aria2c > /dev/null; then diff --git a/aria2-feeder/feed-aria2.sh b/aria2-feeder/feed-aria2.sh index 69461cf..800fda0 100755 --- a/aria2-feeder/feed-aria2.sh +++ b/aria2-feeder/feed-aria2.sh @@ -1,4 +1,5 @@ -#!/bin/bash -e +#!/bin/busybox ash +set -e params=$(echo -n "[[\"$1\"],{\"header\":[\"accept-encoding: gzip, br\"]}]" | base64 -w0) id=$(echo "$RANDOM * $RANDOM" | bc)