Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Error out if the interface does not come up
Wait for 2 seconds for the interface to become ready. On my netbook, getting the datalink type will sometimes loop forever. When I ran tcpdump on the interface there weren't any frames received. The interface seems to be stuck. Bringing the interface up and down, etc, didn't help but rebooting did. Had something to do with the Ubuntu network manager running at the same time the interface was being toggled into monitor mode. Usually this works ok but it's better to shut down the network manager first: service network-manager stop
- Loading branch information