FS#18385 - [netcfg] rfkill switch state is always reported as 'disabled'

Attached to Project: Arch Linux
Opened by Sebastian Wicki (gandro) - Thursday, 18 February 2010, 15:08 GMT
Last edited by James Rayner (iphitus) - Tuesday, 23 February 2010, 11:43 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To James Rayner (iphitus)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No


If you make use of the new rfkill feature, netcfg always reports the radio as disabled. If you are using an soft kill switch netcfg just silently tries to enable radio every time.

This happens because the return output of get_rf_state() is parsed wrong (enable_rf() expects "up" but get_rf_state() returns "enabled").

Additional info:
* netcfg 2.5.2
* make use of the RFKILL feature

Steps to reproduce:
- Set RFKILL="hard"
- Make sure the kill switch is enabled
- netcfg will report the radio as disabled

See attachment.
This task depends upon

Closed by  James Rayner (iphitus)
Tuesday, 23 February 2010, 11:43 GMT
Reason for closing:  Fixed
Additional comments about closing:  Should be fixed in 2.5.4