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:
Jonatan Schlag
2016-12-31 15:04:05 +01:00
committed by Michael Tremer
parent c2336f6bed
commit 593de24f30
2 changed files with 4 additions and 3 deletions

View File

@@ -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

View File

@@ -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
;;