From e3512917d291d7b322b8d6aee2adce858bef1a02 Mon Sep 17 00:00:00 2001 From: Emrys Date: Tue, 17 Mar 2020 11:09:55 +0000 Subject: [PATCH] fix #1528 added new mac address range for rpi4 I assume that the raspberry pi 4 has a different mac address range. found reference to `dc:a6:32:` as possible value for start of mac address range for raspberry pi foundation. please comment if you have a raspberry pi 4 and your mac address doesn't start with `dc:a6:32:` so that I can ammend this pull request with the correct values. --- Modules/admin/admin_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/admin/admin_model.php b/Modules/admin/admin_model.php index af79669c0..1009dbe91 100644 --- a/Modules/admin/admin_model.php +++ b/Modules/admin/admin_model.php @@ -230,7 +230,7 @@ public static function php_modules($_modules) { * @return boolean */ public static function is_Pi() { - return @exec('ifconfig | grep b8:27:eb:'); + return !empty(@exec('ip addr | grep -i "b8:27:eb:\|dc:a6:32:"')); } /**