#!/bin/sh
|
|
|
|
s=firewall.ss_rules
|
|
uci get "$s" >/dev/null && exit 0
|
|
uci batch <<-EOF
|
|
set $s=include
|
|
set $s.path=/etc/firewall.ss-rules
|
|
set $s.reload=1
|
|
commit firewall
|
|
EOF
|