Merge branch 'development'
Conflicts: automated install/uninstall.sh
This commit is contained in:
6
advanced/Scripts/piholeDebug.sh
Normal file → Executable file
6
advanced/Scripts/piholeDebug.sh
Normal file → Executable file
@@ -118,7 +118,7 @@ function testNslookup {
|
||||
|
||||
### Check Pi internet connections ###
|
||||
# Log the IP addresses of this Pi
|
||||
IPADDR=$(ifconfig | perl -nle 's/dr:(\S+)/print $1/e')
|
||||
IPADDR=$($SUDO ifconfig | perl -nle 's/dr:(\S+)/print $1/e')
|
||||
echo "::: Writing local IPs to debug log"
|
||||
echo "IP Addresses of this Pi:" >> $DEBUG_LOG
|
||||
echo "$IPADDR" >> $DEBUG_LOG
|
||||
@@ -258,8 +258,8 @@ then
|
||||
cat "$ADLISTSFILE" >> $DEBUG_LOG
|
||||
echo >> $DEBUG_LOG
|
||||
else
|
||||
echo "No adlists.list file found!" >> $DEBUG_LOG
|
||||
printf ":::\tNo adlists.list file found!\n"
|
||||
echo "No adlists.list file found... using adlists.default!" >> $DEBUG_LOG
|
||||
printf ":::\tNo adlists.list file found... using adlists.default!\n"
|
||||
fi
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user