diff --git a/Makefile b/Makefile index f653ee0..ec1c15d 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,7 @@ endef define Package/luci-app-shadowsocks/postinst #!/bin/sh if [ -f ${IPKG_INSTROOT}/etc/uci-defaults/luci-shadowsocks ]; then - ( . ${IPKG_INSTROOT}/etc/uci-defaults/luci-shadowsocks ) + ( . ${IPKG_INSTROOT}/etc/uci-defaults/luci-shadowsocks ) && \ rm -f ${IPKG_INSTROOT}/etc/uci-defaults/luci-shadowsocks fi if [ -z "${IPKG_INSTROOT}" ]; then diff --git a/README.md b/README.md index 54c77bf..2526281 100644 --- a/README.md +++ b/README.md @@ -18,8 +18,10 @@ OpenWrt LuCI for Shadowsocks-libev ├── etc/ │   ├── config/ │   │   └── shadowsocks // UCI 配置文件 -│   └── init.d/ -│      └── shadowsocks // init 脚本 +│   │── init.d/ +│   │   └── shadowsocks // init 脚本 +│   └── uci-defaults/ +│      └── luci-shadowsocks // uci-defaults 脚本 └── usr/ ├── bin/ │   └── ss-rules // 生成代理转发规则的脚本