mirror of
https://github.com/unifi-utilities/unifios-utilities.git
synced 2024-08-30 18:32:21 +00:00
10 lines
232 B
Bash
10 lines
232 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
set -e
|
||
|
|
||
|
if ! iptables-save | grep -e '\-A UBIOS_.* \--log-prefix "\[' > /dev/null; then
|
||
|
/mnt/data/scripts/ipt-enable-logs.sh | iptables-restore -c
|
||
|
else
|
||
|
echo "iptables already contains USER log prefixes, ignoring."
|
||
|
fi
|