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