We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#!/bin/sh set -e ARIA2_DIR="/sdcard/aria2" #ARIA2_FILE_ALLOCATION="none" ARIA2_FILE_ALLOCATION="prealloc" ARIA2_RPC_SECRET="thefox.chen" # 初始化配置目录 umask 002 \ && mkdir -p "${HOME}/.aria2" \ && touch "${HOME}/.aria2/aria2.session" # 下载最新的配置文件 curl -k -o "${HOME}/.aria2/aria2.conf" 'https://raw.githubusercontent.com/alcove-sh/nextcloud-alpine-3.10-nginx-sqlite3/master/aria2.conf.example' # 关闭安卓不支持的特性与更改下载目录 sed -i \ -e "s|^\\(dir=\\).\{1,\}\$|\\1${ARIA2_DIR}|" \ -e "s|^\\(enable-mmap=\\)true\$|\\1false|" \ -e "s|^\\(rpc-secret=\\).\{1,\}\$|\\1${ARIA2_RPC_SECRET}|" \ -e "s|^\\(file-allocation=\\)falloc\$|\\1${ARIA2_FILE_ALLOCATION}|" \ -e "s|/var/lib/aria2|${HOME}/.aria2|" \ -e '$aenable-rpc=true' "${HOME}/.aria2/aria2.conf"
The text was updated successfully, but these errors were encountered:
开启prealloc后再使用mmap好像还是会引起SIGBUS的问题,因此这里关闭了mmap功能。
Sorry, something went wrong.
考虑将这部分代码移到gitee上。
No branches or pull requests
The text was updated successfully, but these errors were encountered: