bash <(curl -Ls https://raw.by.now.cc/ahhfzwl/sing-box/main/sing-box.sh) del
bash <(curl -Ls https://raw.by.now.cc/ahhfzwl/sing-box/main/sing-box.sh) add
https://fscarmen.cloudflare.now.cc/
wget "$(curl -s https://api.github.com/repos/SagerNet/sing-box/releases/latest | grep -o "https://github.com/SagerNet/sing-box/releases/download/.*/sing-box-.*-linux-$(uname -m | sed 's/x86_/amd/; s/aarch/arm/').tar.gz" | sort -V | head -n 1)"
tar -zxvf sing-box-*
mv ./sing-box-*/sing-box /usr/local/bin/
rm -rf sing-box-*
mkdir /etc/sing-box && wget -O /etc/sing-box/config.json https://raw.by.now.cc/ahhfzwl/sing-box/main/config.json
wget -O /etc/init.d/sing-box https://raw.by.now.cc/ahhfzwl/sing-box/main/sing-box && chmod +x /etc/init.d/sing-box
sed -i '6s/8080/8080/' /etc/sing-box/config.json
setsid sing-box run -c /etc/sing-box/config.json > /dev/null 2>&1 &