initial commit of file from CVS for smeserver-geoip on Sat Sep 7 20:26:07 AEST 2024
This commit is contained in:
6
root/usr/bin/geoiplook
Normal file
6
root/usr/bin/geoiplook
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
for var in "$@"
|
||||
do
|
||||
/usr/bin/mmdblookup --file /usr/share/GeoIP/GeoLite2-Country.mmdb --ip $1 country iso_code |cut -d\" -f2| tr -d '\n'
|
||||
echo ""
|
||||
done
|
Reference in New Issue
Block a user