#!/bin/sh -e if [ -f /tmp/adnew.conf ]; then if (grep -wq "address=" /tmp/adnew.conf); then cp /tmp/adnew.conf /tmp/ssr-update.$1 else cat /tmp/adnew.conf | grep ^\|\|[^\*]*\^$ | sed -e 's:||:address\=\/:' -e 's:\^:/0\.0\.0\.0:' >/tmp/ssr-update.$1 fi fi rm -f /tmp/adnew.conf