• Dan Williams's avatar
    core: add networking enable/disable knob distinct from sleep/wake (rh #589108) (bgo #346615) · fa70542c
    Dan Williams authored
    Since forever we've used sleep/wake as the way to implement
    Networking Enabled.  When the state file was introduced to make the
    networking and wifi states persistent, we ran into a bug where
    a failed suspend (like if the machine ran out of power while
    suspended) would result in networking being disabled on reboot
    since suspend/resume used the same knob as enable/disable.
    
    This patch adds a distinct call for enable/disable networking
    which changes the state file, while sleep/wake no longer change
    the state file.
    fa70542c
nm-manager.c 109 KB