aria2-feeder: usar busybox ash
This commit is contained in:
parent
b1361c9502
commit
9dd10752d1
2 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue