mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Fix os additional information for several OS. $poll_device is not available, use $device * fix draytek test data
10 lines
254 B
PHP
10 lines
254 B
PHP
<?php
|
|
/**
|
|
* draytek.inc.php
|
|
* @author Jason Cheng <sanyu3u@gmail.com>
|
|
*/
|
|
preg_match('/Router Model: ([\w ]+), Version: ([\w\.]+)/', $device['sysDescr'], $tmp_draytek);
|
|
$hardware = $tmp_draytek[1];
|
|
$version = $tmp_draytek[2];
|
|
unset($tmp_draytek);
|