NET ALIAS: add soc interface name as alias
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@foss.st.com> Change-Id: If676d87955150440bd64ee00d6975fe9e220d11b
This commit is contained in:
committed by
bernard PUEL
parent
3ff697dc69
commit
660d986b28
@ -27,8 +27,11 @@ store)
|
||||
interface_path=$(grep -l "$devpath" /tmp/net_interface/*)
|
||||
if [ $(echo $interface_path | wc -l) -eq 1 ]; then
|
||||
interface=$(basename $interface_path)
|
||||
soc_interface=$(basename $devpath | sed 's/\(.*\)\.\(.*\)/\2/' )
|
||||
debug "ip link property add dev $interface altname $param1"
|
||||
ip link property add dev $interface altname $param1
|
||||
debug "ip link property add dev $interface altname $param1.$soc_interface"
|
||||
ip link property add dev $interface altname $param1.$soc_interface
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user