Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
F
fuswim
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sysadmin
fuswim
Commits
265756d3
Commit
265756d3
authored
Jul 23, 2021
by
Franco (nextime) Lanza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Starting to fucking manage connection
parent
74cf44b2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
2 deletions
+43
-2
fuswim
fuswim
+43
-2
No files found.
fuswim
View file @
265756d3
...
...
@@ -155,7 +155,8 @@ def show_fuck_list(nets):
if
'Encryption'
in
nets
[
net
]
.
keys
():
enc
=
nets
[
net
][
'Encryption'
]
freq
=
nets
[
net
][
'Frequency'
]
nconf
=
read_netconf
(
net
)
nconf
=
read_netconf
(
nets
[
net
][
'Name'
])
#nets[net]['conf']=nconf
if
nconf
[
'saved'
]:
nauto
=
'NO'
if
nconf
[
'auto'
]:
...
...
@@ -234,6 +235,7 @@ else:
SM
=
"init"
EXIT
=
False
selected
=
False
while
not
EXIT
:
...
...
@@ -257,6 +259,8 @@ while not EXIT:
i
=
i
+
1
nets
[
name
]
=
net
nets
[
name
][
'Name'
]
==
name
.
replace
(
"/"
,
""
)
.
replace
(
".."
,
""
)
nconf
=
read_netconf
(
nets
[
name
][
'Name'
])
nets
[
name
][
'conf'
]
=
nconf
if
auto
or
boot
:
SM
=
"autoselect"
else
:
...
...
@@ -264,10 +268,43 @@ while not EXIT:
elif
SM
==
"autoselect"
:
print_msg
(
"
\n
** FUCK-O-MATIK Mode Selected **
\n
"
)
selected
=
False
for
net
in
nets
.
keys
():
if
nets
[
net
][
'conf'
][
'saved'
]:
if
not
selected
:
selected
=
nets
[
net
]
else
:
if
int
(
selected
[
'conf'
][
'prio'
])
>
int
(
net
[
'conf'
][
'prio'
]):
selected
=
nets
[
net
]
elif
int
(
selected
[
'conf'
][
'prio'
])
==
int
(
net
[
'conf'
][
'prio'
]):
if
int
(
selected
[
'Quality'
])
<
int
(
net
[
'Quality'
]):
selected
=
nets
[
net
]
SM
=
"connect"
elif
SM
==
"connect"
:
done
=
False
if
selected
:
done
=
True
else
:
print_error
(
"FUCK, Are you asking me to connect but you didn't select successfully any network???"
)
if
done
:
print
(
colors
.
BCYAN
+
"
\n
Are we fucking connected? Up to you to check, do something for fuck sake!
\n
"
+
colors
.
ENDC
)
if
boot
:
if
done
:
print
(
"FUCKING WIFI OK! "
)
else
:
print
(
"Fucking wifi NOT OK!"
)
sys
.
exit
(
0
)
if
auto
:
sys
.
exit
(
0
)
time
.
sleep
(
2
)
SM
=
"main"
elif
SM
==
"main"
:
selected
=
False
netind
=
{}
fuck
=
"none"
while
fuck
not
in
netind
.
keys
()
and
fuck
.
lower
()
not
in
[
'e'
,
'r'
,
'q'
,
's'
,
'm'
]:
...
...
@@ -284,6 +321,10 @@ while not EXIT:
time
.
sleep
(
1
)
elif
fuck
.
lower
()
==
'e'
:
SM
=
"editor"
elif
fuck
in
netind
.
keys
():
selected
=
netind
[
fuck
]
SM
=
"connect"
elif
SM
==
"remove"
:
print
(
"
\n
FOR FUCK SAKE, are you too lazy to do a rm by hand in "
+
NETPATH
+
"?
\n
"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment