From 52568c2ca2314000742ab76590f704b446a7018a Mon Sep 17 00:00:00 2001 From: CN_SZTL Date: Sun, 23 Jun 2019 11:11:31 +0800 Subject: [PATCH] luci-app-baidupcs-mipsle & luci-app-filebrowser-mipsle: fix init --- .../luci-app-baidupcs-mipsle/files/etc/init.d/baidupcs | 6 +++--- .../files/etc/init.d/filebrowser | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package/cnsztl/luci-app-baidupcs-mipsle/files/etc/init.d/baidupcs b/package/cnsztl/luci-app-baidupcs-mipsle/files/etc/init.d/baidupcs index 2845c31320..e70e044ec6 100755 --- a/package/cnsztl/luci-app-baidupcs-mipsle/files/etc/init.d/baidupcs +++ b/package/cnsztl/luci-app-baidupcs-mipsle/files/etc/init.d/baidupcs @@ -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 & } diff --git a/package/cnsztl/luci-app-filebrowser-mipsle/files/etc/init.d/filebrowser b/package/cnsztl/luci-app-filebrowser-mipsle/files/etc/init.d/filebrowser index aa9e4eb753..976b5b3127 100755 --- a/package/cnsztl/luci-app-filebrowser-mipsle/files/etc/init.d/filebrowser +++ b/package/cnsztl/luci-app-filebrowser-mipsle/files/etc/init.d/filebrowser @@ -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 & }