From 13ce5d35777b3bf7c959ce2126f09360a5d940ff Mon Sep 17 00:00:00 2001 From: SourceDoctor Date: Sat, 15 Jun 2019 14:40:55 +0200 Subject: [PATCH] fixing configfile call (#235) --- snmp/dhcp-status.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/snmp/dhcp-status.sh b/snmp/dhcp-status.sh index 458cd02..a629d0a 100755 --- a/snmp/dhcp-status.sh +++ b/snmp/dhcp-status.sh @@ -4,7 +4,6 @@ # edit your snmpd.conf add the below line and restart snmpd # # extend dhcpstats /opt/dhcp-status.sh # ################################################################ - FILE_DHCP='/var/lib/dhcp/db/dhcpd.leases' BIN_CAT='/usr/bin/cat' BIN_GREP='/usr/bin/grep' @@ -15,7 +14,7 @@ BIN_WC='/usr/bin/wc' CONFIGFILE=/etc/snmp/dhcp-status.conf if [ -f $CONFIGFILE ] ; then - . dhcp-status.conf + . $CONFIGFILE fi DHCP_LEASES='^lease'