Mantis 0001112: Failed to setup multiple bonding interfaces.

This commit is contained in:
Volker Theile 2014-09-22 15:50:50 +00:00
parent 67ca09722b
commit 04391e5fdb
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
openmediavault (0.5.60) stable; urgency=low
* Mantis 0001112: Failed to setup multiple bonding interfaces.
-- Volker Theile <volker.theile@openmediavault.org> Mon, 22 Sep 2014 17:46:26 +0200
openmediavault (0.5.59) stable; urgency=low
* Fix bug in omv-update command.

View File

@ -79,7 +79,7 @@ class OMVSystem extends OMVObject {
public static function getNextDevice($type, $name) {
$cmdList = array(
"disk" => "cat /proc/partitions | awk '{print $4}'",
"iface" => "netstat -i"
"iface" => "netstat -i | awk '{print $1}'"
);
$cmd = sprintf("%s | grep '^%s[0-9]\{1,\}$' | sort -r | " .
"head -n 1", $cmdList[$type], $name);