Skip to content
Commits on Apr 17, 2016
  1. Don't cache "up" status of the interface;

    use is_up() to check it every time.
    Prevents the failure we were seeing the first time we tried to set a
    scheme after booting.
    committed Apr 17, 2016
Commits on Apr 16, 2016
  1. Loop back again when ifup fails due to "SIOCSIFFLAGS: Operation not p…

    …ossible due to RF-kill".
    committed Apr 15, 2016
Commits on Jun 15, 2015
Commits on May 13, 2015
  1. Use the last device found, not the first one:

    prefer USB dongles over built-in, since if a user is using
    a USB dongle it's probably because they need to.
    committed May 13, 2015
Commits on Jan 22, 2015
Commits on Jan 21, 2015
  1. Save a scheme as soon as it's been specified;

    don't require that it be set successfully.
    Remove the current/persistent file as soon as a new one
    has been specified.
    committed Jan 20, 2015
Commits on Dec 18, 2014
  1. When bringing down all interfaces, also remove their IP addresses --

    otherwise, the system may still try to route through down interfaces.
    Bring up a wireless interface before running scan, and leave it up
    to avoid unnecessary module reloads.
    Wait 5 seconds after bringing up a wireless interface before trying
    to scan, since scan doesn't work immediately.
    When watching an interface, fork and watch in the background.
    committed Dec 18, 2014
Commits on May 3, 2014
Commits on Apr 20, 2014
Commits on Apr 8, 2014
Commits on Apr 2, 2014
  1. Don't complain about not finding the scheme

    if we're using a non-wireless scheme (don't look for matching essid).
    committed Apr 2, 2014
Commits on Feb 12, 2014
  1. Don't save as persistent if we didn't successfully set a scheme.

    Don't bother to load the config file if we're only listing accesspoints.
    Fork before watching, so we do our watching as a background process.
    committed Feb 11, 2014
Commits on Feb 11, 2014
  1. Clean up the check for dropped connections.

    With -w (watch) mode, poll every 20 seconds and reset
    the connection if it's been dropped.
    committed Feb 10, 2014
Commits on Feb 10, 2014
  1. Add a -w "watch" option:

    loop forever keeping the connection open,
    resetting it if it drops.
    committed Feb 10, 2014
  2. Add a check_associated call in NetInterface.

    Remove unused Connection classes, dead code.
    committed Feb 10, 2014
Commits on Jan 12, 2014
Commits on Dec 11, 2013
  1. Fix a bug where an old persistent scheme

    for an AP no longer visible could interfere with setting new schemes.
    committed Dec 10, 2013
Commits on Sep 29, 2013
Commits on Sep 24, 2013
  1. Break out of the loop over known schemes

    when we find a scheme matching the one specified.
    Fixes a bug where the wrong scheme would be saved to the current file.
    committed Sep 23, 2013
  2. Fix a bug with persistent schemes:

    After accepting a new scheme and saving it successfully,
    sometimes, inexplicably, it loops back:
    Save this scheme for later? (y/N) y
    Trying to write scheme to /home/akkana/.config/netscheme/.netscheme
    Use it anyway? (Y/n)
    
    I think this was happening when there were two schemes both matching
    the current essid, because we didn't break out of the loop.
    
    Also, if persistent is specified then we shouldn't ask "save this scheme
    for later?" anyway -- obviously we need to save a persistent scheme.
    committed Sep 23, 2013
Commits on Aug 29, 2013
  1. Print a warning in the case that we remain bound

    to an old essid even though we asked for a newer one.
    I'm still not clear how that can happen.
    committed Aug 28, 2013
Commits on Aug 27, 2013
Commits on Aug 8, 2013
  1. Yet more file handling tweaks.

    Create the "current" file properly.
    committed Aug 7, 2013
Commits on Aug 6, 2013
Commits on Aug 5, 2013
  1. Check for WPA errors like wrong password,

    and return a more comprehensible message if wpa_supplicant
    exits with a nonzero status.
    Also, don't add an extra newline when adding new schemes to .netscheme.
    committed Aug 5, 2013
Commits on Aug 4, 2013
  1. More factoring and bugfixing for file handling.

    Also improve the comments for set_scheme, explaining "add" better.
    committed Aug 4, 2013
Commits on Aug 3, 2013
Something went wrong with that request. Please try again.