mirror of
https://github.com/pi-hole/pi-hole
synced 2024-11-18 06:08:21 +00:00
Add distribution Check
This commit is contained in:
parent
4657959790
commit
f45eb84d6b
@ -67,6 +67,14 @@ function versionCheck {
|
|||||||
echo >> $DEBUG_LOG
|
echo >> $DEBUG_LOG
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function distroCheck {
|
||||||
|
echo "#######################################" >> $DEBUG_LOG
|
||||||
|
echo "######## Distribution Section #########" >> $DEBUG_LOG
|
||||||
|
echo "#######################################" >> $DEBUG_LOG
|
||||||
|
|
||||||
|
TMP=$(cat /etc/lsb-release/ || echo "Failed to find lsb")
|
||||||
|
echo "Distribution Version: $TMP" >> $DEBUG_LOG
|
||||||
|
|
||||||
function compareWhitelist {
|
function compareWhitelist {
|
||||||
if [ ! -f "$WHITELISTMATCHES" ]; then
|
if [ ! -f "$WHITELISTMATCHES" ]; then
|
||||||
$SUDO touch $WHITELISTMATCHES
|
$SUDO touch $WHITELISTMATCHES
|
||||||
@ -195,6 +203,7 @@ echo "$GATEWAY_CHECK" >> $DEBUG_LOG
|
|||||||
echo >> $DEBUG_LOG
|
echo >> $DEBUG_LOG
|
||||||
|
|
||||||
versionCheck
|
versionCheck
|
||||||
|
distroCheck
|
||||||
compareWhitelist
|
compareWhitelist
|
||||||
compareBlacklist
|
compareBlacklist
|
||||||
testNslookup
|
testNslookup
|
||||||
|
Loading…
Reference in New Issue
Block a user