Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Prompt for the password on an unknown but encrypted link. Untested.

  • Loading branch information...
commit 47573d07a121f3e6e300933c8a554a3873fe6713 1 parent ab1ab30
@akkana authored
Showing with 10 additions and 4 deletions.
  1. +10 −4 netscheme
View
14 netscheme
@@ -384,8 +384,8 @@ def is_debian() :
release = float(line[16:])
lsb.close()
if is_ubuntu :
- if release >= 12.0 :
- return False
+ #if release >= 12.0 :
+ # return False
return True
except :
pass
@@ -471,9 +471,15 @@ def find_and_set_scheme(newscheme, add=False) :
if ans != 'y' and ans != 'Y' and ans != '':
sys.exit(1)
+ # Get the key, if relevant:
+ if ap.encryption and ap.encryption != "open" :
+ key = raw_input("Password: ")
+ else :
+ key = ''
+
# Use the scheme
- scheme = NetScheme(ap.essid, True, '', '', '', '',
- ap.encryption, ap.essid)
+ scheme = NetScheme(ap.essid, True, encryption=ap.encryption,
+ essid=ap.essid, key=key)
if ap.interface :
scheme.interface = ap.interface
scheme.set_scheme()
Please sign in to comment.
Something went wrong with that request. Please try again.