mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-15 18:03:30 +00:00
21 lines
441 B
Bash
Executable File
21 lines
441 B
Bash
Executable File
#!/bin/sh
|
|
|
|
uci -q batch <<-EOF >/dev/null
|
|
delete ucitrack.@v2raypro[-1]
|
|
add ucitrack v2raypro
|
|
set ucitrack.@v2raypro[-1].init=v2raypro
|
|
commit ucitrack
|
|
delete firewall.v2raypro
|
|
set firewall.v2raypro=include
|
|
set firewall.v2raypro.type=script
|
|
set firewall.v2raypro.path=/etc/v2raypro.include
|
|
set firewall.v2raypro.reload=1
|
|
commit firewall
|
|
EOF
|
|
|
|
/etc/init.d/v2raypro stop
|
|
/etc/init.d/v2raypro enable
|
|
|
|
rm -f /tmp/luci-indexcache
|
|
exit 0
|