From: Stefan Schantl Date: Mon, 9 Dec 2019 13:59:26 +0000 (+0100) Subject: red.up: Download / Update location database. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1eee696bb4402370db0f65237cc1e2148815ee56;p=people%2Fpmueller%2Fipfire-2.x.git red.up: Download / Update location database. Signed-off-by: Stefan Schantl --- diff --git a/src/initscripts/networking/red.up/99-geoip-database b/src/initscripts/networking/red.up/99-geoip-database deleted file mode 100644 index 9b024a8d0c..0000000000 --- a/src/initscripts/networking/red.up/99-geoip-database +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -# Get the GeoIP database if no one exists yet - -database_exists() { - local file - for file in /usr/share/xt_geoip/*.iv4; do - [ -e "${file}" ] && return 0 - done - - # Does not exist - return 1 -} - -# Download ruleset if none has been found. -if ! database_exists; then - /usr/local/bin/xt_geoip_update >/dev/null 2>&1 & -fi - -exit 0 diff --git a/src/initscripts/networking/red.up/99-location-database b/src/initscripts/networking/red.up/99-location-database new file mode 100644 index 0000000000..29f2446796 --- /dev/null +++ b/src/initscripts/networking/red.up/99-location-database @@ -0,0 +1,6 @@ +#!/bin/bash + +# Download / Check for updates of the location database. +/usr/local/bin/update-location-database + +exit 0