diff options
| author | Lexi Winter <lexi@le-fay.org> | 2025-07-20 08:15:58 +0100 |
|---|---|---|
| committer | Lexi Winter <lexi@le-fay.org> | 2025-07-20 08:15:58 +0100 |
| commit | a886a1a262c6dd85e4589f8edd1f3d031acd3863 (patch) | |
| tree | 4ab736fa36746ec5d0e79a9d595d4ef9b9b95509 /900.lfdroplist.sh | |
| parent | 23021b35048ab88bc85f0eb10432e0621ed430be (diff) | |
| download | lfutils-1.0.tar.gz lfutils-1.0.tar.bz2 | |
add a periodic script for droplistv1.0
Diffstat (limited to '900.lfdroplist.sh')
| -rw-r--r-- | 900.lfdroplist.sh | 24 |
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 |
