shadowsocks-libev: validate bool with default value 0
authorYousong Zhou <redacted>
Sun, 23 Jul 2017 15:15:23 +0000 (23:15 +0800)
committerYousong Zhou <redacted>
Sun, 23 Jul 2017 15:29:47 +0000 (23:29 +0800)
commit3fe965dd1c2b444cc2fa0d26ad4b742c5de44c08
treec251b505940745bebefdb1e5bbd94ce8981fbf99
parent8ad2f36550516b00c536b7457aa9d73e7c53b85f
shadowsocks-libev: validate bool with default value 0

The change is mainly for keeping compatibility with old validate_data
before ubox commit ac481cdd999ee84d3f115c33a56397237e95ec64 in Sat Jul
16 14:52:36 2016 +0200.  The behaviour change comes with that commit can
be seen with the following command line session

    root@LEDE:/usr/bin# validate_data network interface wan 'disabled:bool:false'
    network.wan.disabled is unset and defaults to bool false
    disabled=0; root@LEDE:/usr/bin#

    root@OpenWrt:/# validate_data network interface lan 'disabled:bool:false'
    disabled='false'; root@OpenWrt:/#

This will cause shadowsocks-libev in current master branch fail on OpenWrt
15.01 though they actually should only use packages from the 15.01 branch...

Fixes openwrt/packages#4614

Signed-off-by: Yousong Zhou <redacted>
net/shadowsocks-libev/Makefile
net/shadowsocks-libev/files/shadowsocks-libev.init
git clone https://git.99rst.org/PROJECT