sammko / airplaned

Userspace airplane mode manager for linux.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove limit on device IDs.

sammko opened this issue · comments

The device id is not guaranteed to be < ndevices. For example, the id of the bluetooth adapter on my asus zenbook increases by one after every suspend. A means of index compression should be implemented (hashmap?)

A (much) simpler approach would be probably to just set the limit to a large number. I believe this is what the rfkill module does internally. (Need to check the source).