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
14 lines
316 B
Bash
Executable File
14 lines
316 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
if [ -f /mnt/data/on_boot.d/10-dns.sh ]; then
|
|
if ! iptables-save | grep -e '\-A PREROUTING.* \--log-prefix "\[' > /dev/null; then
|
|
/mnt/data/on_boot.d/10-dns.sh
|
|
else
|
|
echo "iptables already contains DNAT log prefixes, ignoring."
|
|
fi
|
|
fi
|
|
|
|
/mnt/data/on_boot.d/30-ipt-enable-logs-launch.sh
|