summaryrefslogtreecommitdiff
path: root/files/common/sbin/splash_sync
diff options
context:
space:
mode:
Diffstat (limited to 'files/common/sbin/splash_sync')
-rwxr-xr-xfiles/common/sbin/splash_sync5
1 files changed, 4 insertions, 1 deletions
diff --git a/files/common/sbin/splash_sync b/files/common/sbin/splash_sync
index bbb4182..aafa49f 100755
--- a/files/common/sbin/splash_sync
+++ b/files/common/sbin/splash_sync
@@ -1,8 +1,11 @@
#!/bin/sh -e
. /etc/splash.sh
+# acquire lock
+exec 666<$chain_id_file
+flock -x 666
+
# check for current inetable state, allowing a command line override
-lockSplash
if have_splash_iptable $1; then
# remove old entries from splash p2ptbl
p2ptbl filter $tbl \
contact: Jan Huwald // Impressum