1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-22 13:33:52 +03:00

Add LANG for ifconfig

Adding Language for the ifconfig-command as the regex wouldnt match in other languagesets
This commit is contained in:
CertiY 2014-06-17 22:52:22 +02:00 committed by Javi Fontan
parent d40e1395c5
commit f3159b78a3

View File

@ -68,6 +68,8 @@ get_gateway() {
get_interfaces() {
IFCMD="/sbin/ifconfig -a"
LANG=C
$IFCMD | grep ^eth | sed 's/ *Link encap:Ethernet.*HWaddr /-/g'
}