Add MikroTik RouterOS Long-term release
This commit is contained in:
parent
e58746f551
commit
43c2f8baf7
1 changed files with 17 additions and 0 deletions
17
modules/MikroTikRouterOSLTS.php
Normal file
17
modules/MikroTikRouterOSLTS.php
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
class MikroTikRouterOSLTS extends PatchBase {
|
||||
function __construct() {
|
||||
parent::__construct('MikroTik', 'RouterOS', 'https://mikrotik.com/download');
|
||||
$this->patch->setBranch('Long-term');
|
||||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch('https://mikrotik.com/download')) {
|
||||
$this->str_crop('id="routeros"', '</thead>');
|
||||
return $this->parse('/<th>([\d\.]+) \(Long-term\)/');
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue