immortalwrt/package/jsda/openwrt-brook-tproxy/files/root/usr/bin/brook-ad
2019-07-02 18:06:49 +08:00

5 lines
158 B
Bash
Executable File

#!/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