ssr-ad 305 B

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