Bug#495676: hw-detect: hw-detect new device detection misbehaves with wlan* devices
Jérémy Bobbio <lunar@debian.org> writes:
>
> I see two possible fixes here:
>
> * Stop sorting devices in snapshot_devs() anymore. I don't see why
> the kernel would reorder the content of /proc/net/dev when new
> modules are inserted. From my tests, this nicely solved the issue.
> * Make compare_dev() able to detect the addition in the middle of the
> device list. For the record, modifying compare_devs to use the
> following did the trick:
>
> sed="$(echo $olddevs | sed -e 's#\([a-z0-9]\+\) *#s/\1 *//;#g')"
> echo $devs | sed -e "$sed"
>
> I tried to dig the history of the repository in order to figure out why
> snapshot_dev() used "sort" in the first place, but I was not able to get
> any meaningful result. Do anyone have an idea?
>
> Otherwise, removing the sorting sounds like the best option to me.
I also do not see a reason for it. If noone complains in next days I'd
say for us to go with the sort removal and get it uploaded.
--
O T A V I O S A L V A D O R
---------------------------------------------
E-mail: otavio@debian.org UIN: 5906116
GNU/Linux User: 239058 GPG ID: 49A5F855
Home Page: http://otavio.ossystems.com.br
---------------------------------------------
"Microsoft sells you Windows ... Linux gives
you the whole house."
Reply to: