aria2-feeder: usar busybox ash

This commit is contained in:
Cat /dev/Nulo 2021-11-30 21:00:15 -03:00
parent b1361c9502
commit 9dd10752d1
2 changed files with 4 additions and 3 deletions

View file

@ -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

View file

@ -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)