mirror of
https://github.com/novatiq/packages.git
synced 2026-04-24 21:14:40 +01:00
shadowsocks-libev: shorten init script by 2 lines
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
@@ -14,7 +14,7 @@ include $(TOPDIR)/rules.mk
|
||||
#
|
||||
PKG_NAME:=shadowsocks-libev
|
||||
PKG_VERSION:=3.0.8
|
||||
PKG_RELEASE:=10
|
||||
PKG_RELEASE:=11
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://github.com/shadowsocks/shadowsocks-libev/releases/download/v$(PKG_VERSION)
|
||||
|
||||
@@ -28,9 +28,7 @@ ss_mkjson_() {
|
||||
local func
|
||||
|
||||
for func in "$@"; do
|
||||
if ! "$func"; then
|
||||
return 1
|
||||
fi
|
||||
"$func" || return 1
|
||||
done
|
||||
}
|
||||
|
||||
@@ -184,7 +182,7 @@ ss_rules() {
|
||||
}
|
||||
|
||||
start_service() {
|
||||
local cfgtype="$1"
|
||||
local cfgtype
|
||||
|
||||
mkdir -p "$ss_confdir"
|
||||
config_load shadowsocks-libev
|
||||
|
||||
Reference in New Issue
Block a user