immortalwrt/package/jsda/openwrt-brook-tproxy/files/root/usr/bin/brook-ad

5 lines
158 B
Plaintext
Raw Normal View History

2019-07-02 18:06:49 +08:00
#!/bin/sh -e
if [ -f /tmp/adnew.conf ]; then
cat /tmp/adnew.conf | grep ^\|\|[^\*]*\^$ | sed -e 's:||:address\=\/:' -e 's:\^:/0\.0\.0\.0:' > /tmp/ad.conf
fi