From f1cd69fb34f4be822f8e793a4fd4f930b3ead06a Mon Sep 17 00:00:00 2001 From: bergware Date: Sun, 5 Jun 2016 17:08:40 +0200 Subject: [PATCH] Improved 'interface not configured' detection --- plugins/dynamix/EthX.page | 2 +- plugins/dynamix/include/update.ethernet.php | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/plugins/dynamix/EthX.page b/plugins/dynamix/EthX.page index 7c326c5f0..add4d734e 100644 --- a/plugins/dynamix/EthX.page +++ b/plugins/dynamix/EthX.page @@ -16,7 +16,7 @@ Png="ethernet.png" ?> ]'"))==0; +$down = empty($ethX) || strlen(exec("ip link show ethX|grep -om1 ',UP[,>]'"))==0; // get VLAN interfaces $vlan_ethX = [0]; diff --git a/plugins/dynamix/include/update.ethernet.php b/plugins/dynamix/include/update.ethernet.php index 0c2439b07..4ea55919f 100644 --- a/plugins/dynamix/include/update.ethernet.php +++ b/plugins/dynamix/include/update.ethernet.php @@ -11,5 +11,15 @@ */ ?> \ No newline at end of file