summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLexi Winter <lexi@le-fay.org>2025-07-20 08:15:58 +0100
committerLexi Winter <lexi@le-fay.org>2025-07-20 08:15:58 +0100
commita886a1a262c6dd85e4589f8edd1f3d031acd3863 (patch)
tree4ab736fa36746ec5d0e79a9d595d4ef9b9b95509
parent23021b35048ab88bc85f0eb10432e0621ed430be (diff)
downloadlfutils-1.0.tar.gz
lfutils-1.0.tar.bz2
add a periodic script for droplistv1.0
-rw-r--r--900.lfdroplist.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/900.lfdroplist.sh b/900.lfdroplist.sh
new file mode 100644
index 0000000..6794538
--- /dev/null
+++ b/900.lfdroplist.sh
@@ -0,0 +1,24 @@
+#! /bin/sh
+
+if [ -r /etc/defaults/periodic.conf ]; then
+ . /etc/defaults/periodic.conf
+ source_periodic_confs
+fi
+
+PATH=$PATH:/usr/local/bin:/usr/local/sbin
+export PATH
+
+if ! [ -x /usr/local/sbin/lf-droplist-update ]; then
+ exit 0
+fi
+
+case "$daily_lfdroplist_enable" in
+[Yy][Ee][Ss])
+ printf 'Updating the pf droplist:\n'
+
+ /usr/local/sbin/lf-droplist-update
+ ;;
+
+*)
+ ;;
+esac