diff options
author | Simon Rettberg | 2022-05-23 17:49:56 +0200 |
---|---|---|
committer | Simon Rettberg | 2022-05-23 17:49:56 +0200 |
commit | eb53aa4fcfc3eb23af60d4f25da6008932cf1bcd (patch) | |
tree | cb012062ff16e207124213193fce44349d8a33e3 /core/modules | |
parent | [debug-report-bwlp] Include resolv.conf, censor passwords from config (diff) | |
download | mltk-eb53aa4fcfc3eb23af60d4f25da6008932cf1bcd.tar.gz mltk-eb53aa4fcfc3eb23af60d4f25da6008932cf1bcd.tar.xz mltk-eb53aa4fcfc3eb23af60d4f25da6008932cf1bcd.zip |
[iptables-helper] Use cmp instead of diff
Diffstat (limited to 'core/modules')
-rwxr-xr-x | core/modules/iptables-helper/data/opt/openslx/iptables/iptables-reloader-worker | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/iptables-helper/data/opt/openslx/iptables/iptables-reloader-worker b/core/modules/iptables-helper/data/opt/openslx/iptables/iptables-reloader-worker index 64afdc9d..03a80b32 100755 --- a/core/modules/iptables-helper/data/opt/openslx/iptables/iptables-reloader-worker +++ b/core/modules/iptables-helper/data/opt/openslx/iptables/iptables-reloader-worker @@ -30,7 +30,7 @@ reload_rules () { done # No change? Do nothing... - if [ -s "${ALL_RULES}" ] && [ -s "${ALL_RULES}.new" ] && diff "${ALL_RULES}" "${ALL_RULES}.new"; then + if [ -s "${ALL_RULES}" ] && [ -s "${ALL_RULES}.new" ] && cmp "${ALL_RULES}" "${ALL_RULES}.new"; then echo "$1 NOCHANGE" rm -rf -- "${ALL_RULES}.new" "$WAIT" exit 0 |