Panel should not crash without /proc/netif
This commit is contained in:
parent
75cd03a4a6
commit
eabd917032
@ -298,6 +298,8 @@ static char * netstat_mac = NULL;
|
||||
static void update_network_status(void) {
|
||||
FILE * net = fopen("/proc/netif","r");
|
||||
|
||||
if (!net) return;
|
||||
|
||||
char line[256];
|
||||
|
||||
do {
|
||||
|
Loading…
Reference in New Issue
Block a user