mirror of
https://github.com/unifi-utilities/unifios-utilities.git
synced 2024-08-30 18:32:21 +00:00
9967161b80
* Add some more on_boot..d examples * Add ipt-enable-logs
10 lines
232 B
Bash
Executable File
10 lines
232 B
Bash
Executable File
#!/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
|