|
From: Stephen H F R. <shf...@gm...> - 2010-04-21 00:41:46
|
Bruce, >>>One solution would be to automatically detect a major hardware change and prompt the user for what to do. Given we are specifically talking about interface names and MAC addresses here, how about: myHWChecksum=`ifconfig | grep HWaddr | md5sum` eg; root@gannet:~ # ifconfig | grep HWaddr eth0 Link encap:Ethernet HWaddr 00:40:F4:B8:DB:2F eth1 Link encap:Ethernet HWaddr 00:40:F4:B8:DB:2E eth1:0 Link encap:Ethernet HWaddr 00:40:F4:B8:DB:2E eth2 Link encap:Ethernet HWaddr 00:40:F4:B8:DB:2D eth2:0 Link encap:Ethernet HWaddr 00:40:F4:B8:DB:2D root@gannet:~ # ifconfig | grep HWaddr | md5sum e3f0bea9d48f267949cb060e553caa81 - root@gannet:~ # ifconfig eth2:0 down root@gannet:~ # ifconfig | grep HWaddr | md5sum be7038a7bc2f03025e28e1395ab9785e - This would detect different mac addresses, and changed association between interface name and mac address. Not sure what we'd do with it though... Regards - Steve "Stephen H F Ralph" <shf...@gm...> > > Message: 1 > Date: Tue, 20 Apr 2010 12:53:52 -0400 > From: Bruce Smith <bw...@re...> > Subject: Re: [Devil-linux-develop] Potential bug - save-config > includes "/etc/udev/rules.d/70-persistent-net.rules" > To: dev...@li... > Message-ID: > <r2j...@ma...> > Content-Type: text/plain; charset=ISO-8859-1 > > One solution would be to automatically detect a major hardware change > and prompt the user for what to do. Kinda like what happens with a > new version of DL. Although I'm not sure exactly how to detect a > major hardware change, and what constitutes "major". > > - BS > |