mirror of
https://git.proxmox.com/git/pve-common
synced 2025-08-04 10:56:31 +00:00
fix path for brctl to /sbin/brctl
This commit is contained in:
parent
cc9121d394
commit
9e14b1b78a
@ -70,7 +70,7 @@ sub tap_plug {
|
||||
my $newbridge = activate_bridge_vlan($bridge, $tag);
|
||||
copy_bridge_config($bridge, $newbridge) if $bridge ne $newbridge;
|
||||
|
||||
system ("/usr/sbin/brctl addif $newbridge $iface") == 0 ||
|
||||
system ("/sbin/brctl addif $newbridge $iface") == 0 ||
|
||||
die "can't add interface to bridge\n";
|
||||
}
|
||||
|
||||
@ -79,7 +79,7 @@ sub tap_unplug {
|
||||
|
||||
$bridge .= "v$tag" if $tag;
|
||||
|
||||
system ("/usr/sbin/brctl delif $bridge $iface") == 0 ||
|
||||
system ("/sbin/brctl delif $bridge $iface") == 0 ||
|
||||
die "can't del interface from bridge\n";
|
||||
}
|
||||
|
||||
@ -158,7 +158,7 @@ sub activate_bridge_vlan {
|
||||
|
||||
# add bridgevlan if it doesn't already exist
|
||||
if (! -d "/sys/class/net/$bridgevlan") {
|
||||
system("/usr/sbin/brctl addbr $bridgevlan") == 0 ||
|
||||
system("/sbin/brctl addbr $bridgevlan") == 0 ||
|
||||
die "can't add bridge $bridgevlan\n";
|
||||
}
|
||||
|
||||
@ -169,7 +169,7 @@ sub activate_bridge_vlan {
|
||||
die "can't up bridge $bridgevlan\n";
|
||||
|
||||
# add $ifacevlan to the bridge
|
||||
system("/usr/sbin/brctl addif $bridgevlan $ifacevlan") == 0 ||
|
||||
system("/sbin/brctl addif $bridgevlan $ifacevlan") == 0 ||
|
||||
die "can't add interface $ifacevlan to bridge $bridgevlan\n";
|
||||
|
||||
return $bridgevlan;
|
||||
|
Loading…
Reference in New Issue
Block a user