openSUSE / wicked

Framework for network configuration
https://en.opensuse.org/Portal:Wicked
GNU General Public License v2.0
98 stars 49 forks source link

ifcheck: fix config changed check (bsc#1218926) #995

Closed cfconrad closed 5 months ago

cfconrad commented 5 months ago

This fix the outcome of the following commands:

source /etc/sysconfig/network/ifcfg-en0
grep IPADDR /etc/sysconfig/network/ifcfg-en0
sed -i '/IPADDR/cIPADDR=10.1.2.5/24' /etc/sysconfig/network/ifcfg-en0
wicked ifcheck --changed en0 && echo "ERROR config changed not notified"
sed -i '/IPADDR/cIPADDR='$IPADDR /etc/sysconfig/network/ifcfg-en0
wicked ifcheck --changed en0 || echo "ERROR unexpected config changed"