luci-app-baidupcs-mipsle & luci-app-filebrowser-mipsle: fix init
This commit is contained in:
parent
f59a5f9ad9
commit
52568c2ca2
@ -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 2>&1 >/dev/null &
|
||||
wget -O $path/baidupcs https://openwrt-cdn.netlify.com/download/bin/mipsle/baidupcs-go && cd $path && ./baidupcs web --port $port --access >/dev/null 2>&1 &
|
||||
else
|
||||
$path/baidupcs web --port $port --access >/dev/null 2>/dev/null &
|
||||
$path/baidupcs web --port $port --access >/dev/null 2>&1 &
|
||||
fi
|
||||
}
|
||||
|
||||
stop() {
|
||||
killall baidupcs 2>&1 >/dev/null &
|
||||
killall baidupcs >/dev/null 2>&1 &
|
||||
}
|
||||
|
||||
@ -16,10 +16,10 @@ start() {
|
||||
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 2>&1 >/dev/null &
|
||||
else
|
||||
cd $path && ./filebrowser --port $port --scope $scope 2>&1 >/dev/null &
|
||||
cd $path && ./filebrowser --port $port --scope $scope >/dev/null 2>&1 &
|
||||
fi
|
||||
}
|
||||
|
||||
stop() {
|
||||
killall filebrowser >/dev/null 2>/dev/null &
|
||||
killall filebrowser >/dev/null 2>&1 &
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user