mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00

* luci-app-ssr-plus:Code optimization and Fix Bug * luci-app-ssr-plus:Adjust reference data location
10 lines
284 B
Bash
Executable File
10 lines
284 B
Bash
Executable File
#!/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
|