Skip to content

Fix ifconfig parsing

Luca Boccassi requested to merge bluca/live-boot:inet into master

ifconfig does not output "inet.*addr:" pattern anymore. Match IP addresses instead.

$ /sbin/ifconfig wlp2s0 | grep 'inet.*addr:'

$ /sbin/ifconfig wlp2s0 | grep 'inet [0-9][0-9]*.[0-9][0-9]*.[0-9][0-9]*.[0-9][0-9]*'

  inet 192.168.1.5  netmask 255.255.255.0  broadcast 192.168.1.255

Closes: #892772

Edited by Luca Boccassi

Merge request reports

Loading