modified: package/cnsztl/luci-app-baidupcs-mipsle/files/etc/init.d/baidupcs

modified:   package/cnsztl/luci-app-filebrowser-mipsle/files/etc/init.d/filebrowser
This commit is contained in:
CN_SZTL 2019-06-07 00:27:38 +08:00
parent beb6688739
commit f373997956
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 4 additions and 4 deletions

View File

@ -13,12 +13,12 @@ start() {
[ "$enabled" == "1" ] || return
if [ ! -f "$path/baidupcs" ];then
wget -O $path/baidupcs https://openwrt-cdn.netlify.com/download/bin/mipsle/baidupcs-go && cd $path && ./baidupcs web --port $port --access >/dev/null 2>/dev/null &
wget -O $path/baidupcs https://openwrt-cdn.netlify.com/download/bin/mipsle/baidupcs-go && cd $path && ./baidupcs web --port $port --access 2>&1 >/dev/null &
else
$path/baidupcs web --port $port --access >/dev/null 2>/dev/null &
fi
}
stop() {
killall baidupcs >/dev/null 2>/dev/null &
killall baidupcs 2>&1 >/dev/null &
}

View File

@ -14,9 +14,9 @@ start() {
[ "$enabled" == "1" ] || return
if [ ! -f "$path/filebrowser" ];then
wget -O $path/filebrowser https://openwrt-cdn.netlify.com/download/bin/mipsle/filebrowser && cd $path && ./filebrowser --port $port --scope $scope >/dev/null 2>/dev/null &
wget -O $path/filebrowser https://openwrt-cdn.netlify.com/download/bin/mipsle/filebrowser && cd $path && ./filebrowser --port $port --scope $scope 2>&1 >/dev/null &
else
cd $path && ./filebrowser --port $port --scope $scope >/dev/null 2>/dev/null &
cd $path && ./filebrowser --port $port --scope $scope 2>&1 >/dev/null &
fi
}