Skip to content

Commit

Permalink
Support Thunderbolt network devices.
Browse files Browse the repository at this point in the history
Signed-off-by: Volker Theile <votdev@gmx.de>
  • Loading branch information
votdev committed Dec 21, 2018
1 parent 40725d4 commit e1d31d9
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
1 change: 1 addition & 0 deletions deb/openmediavault/debian/changelog
Expand Up @@ -4,6 +4,7 @@ openmediavault (4.1.16-1) stable; urgency=low
* Fix some Python code issues.
* Fix bug in omv-mkaptidx.
* Do not show USB devices in the RAID creation dialog.
* Support Thunderbolt network devices.

-- Volker Theile <volker.theile@openmediavault.org> Fri, 14 Dec 2018 09:26:08 +0100

Expand Down
Expand Up @@ -25,7 +25,7 @@ namespace OMV\System\Net\NetworkInterfaceBackend;
// Register default network interface backends.
///////////////////////////////////////////////////////////////////////////////
$backends = [ "Bond", "Bridge", "Ethernet", "Infiniband", "Loopback",
"Virtual", "Vlan", "Wireless" ];
"Virtual", "Vlan", "Wireless", "Thunderbolt" ];
$mngr = Manager::getInstance();
foreach ($backends as $backendk => $backendv) {
$className = sprintf("%s\%s", __NAMESPACE__, $backendv);
Expand Down
@@ -0,0 +1,30 @@
<?php
/**
* This file is part of OpenMediaVault.
*
* @license http://www.gnu.org/licenses/gpl.html GPL Version 3
* @author Volker Theile <volker.theile@openmediavault.org>
* @copyright Copyright (c) 2009-2018 Volker Theile
*
* OpenMediaVault is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* OpenMediaVault is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with OpenMediaVault. If not, see <http://www.gnu.org/licenses/>.
*/
namespace OMV\System\Net\NetworkInterfaceBackend;

/**
* Implements the network interface backend for Thunderbolt devices.
* @ingroup api
*/
class Thunderbolt extends Ethernet {
protected $regex = "/^thunderbolt[0-9]+$/i";
}

0 comments on commit e1d31d9

Please sign in to comment.