mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-25 10:22:59 +02:00
Use a better naming scheme for physical devices.
Instead of orange0phys we should use orangephys0 this patch implements the necessary changes. Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
c2336f6bed
commit
593de24f30
@@ -26,7 +26,8 @@
|
||||
eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings)
|
||||
|
||||
detect_zone() {
|
||||
local intf="${INTERFACE%0*}"
|
||||
local intf="${INTERFACE%?}"
|
||||
intf="${intf%phys}"
|
||||
intf="${intf^^}"
|
||||
|
||||
local zone
|
||||
|
||||
@@ -69,7 +69,7 @@ for zone in ${ZONES}; do
|
||||
# print the name to which udev will rename it.
|
||||
case "${!mode}" in
|
||||
bridge)
|
||||
echo "${!device}phys"
|
||||
echo "${!device%0}phys0"
|
||||
;;
|
||||
|
||||
macvtap)
|
||||
@@ -78,7 +78,7 @@ for zone in ${ZONES}; do
|
||||
logger -t network "MACVTAP mode is not supported for wireless devices"
|
||||
echo "${!device}"
|
||||
else
|
||||
echo "${!device}phys"
|
||||
echo "${!device%0}phys0"
|
||||
fi
|
||||
;;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user