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>
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
# print the name to which udev will rename it.
case "${!mode}" in
bridge)
- echo "${!device}phys"
+ echo "${!device%0}phys0"
;;
macvtap)
logger -t network "MACVTAP mode is not supported for wireless devices"
echo "${!device}"
else
- echo "${!device}phys"
+ echo "${!device%0}phys0"
fi
;;