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
f35b9f2a
Commit
f35b9f2a
authored
Jul 22, 2021
by
root
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Celebrating this fucking thing
parent
d63f8192
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
fuswim
fuswim
+7
-7
No files found.
fuswim
View file @
f35b9f2a
...
@@ -31,7 +31,7 @@ def start_wpa(interface):
...
@@ -31,7 +31,7 @@ def start_wpa(interface):
sh
(
"/sbin/wpa_supplicant -s -B -P /run/wpa_supplicant."
+
interface
+
".pid -i wlan0 -D nl80211,wext -C /run/wpa_supplicant"
)
sh
(
"/sbin/wpa_supplicant -s -B -P /run/wpa_supplicant."
+
interface
+
".pid -i wlan0 -D nl80211,wext -C /run/wpa_supplicant"
)
if
len
(
sys
.
argv
)
>
1
and
sys
.
argv
[
1
]
==
'boot'
:
if
len
(
sys
.
argv
)
>
1
and
sys
.
argv
[
1
]
==
'boot'
:
print
(
' *
fuswim start
s... '
)
print
(
' *
start to fucking with your wireles
s... '
)
boot
=
True
boot
=
True
auto
=
True
auto
=
True
...
@@ -43,7 +43,7 @@ if sys.argv[-1] not in ['auto','boot',sys.argv[0]]:
...
@@ -43,7 +43,7 @@ if sys.argv[-1] not in ['auto','boot',sys.argv[0]]:
interface
=
sys
.
argv
[
-
1
]
interface
=
sys
.
argv
[
-
1
]
if
not
interface
in
psutil
.
net_if_stats
()
.
keys
():
if
not
interface
in
psutil
.
net_if_stats
()
.
keys
():
print
(
"Interface "
+
interface
+
" doesn't exists. Exiting..."
)
print
(
"
OH FUCK!
Interface "
+
interface
+
" doesn't exists. Exiting..."
)
sys
.
exit
(
1
)
sys
.
exit
(
1
)
...
@@ -55,21 +55,21 @@ for process in psutil.process_iter():
...
@@ -55,21 +55,21 @@ for process in psutil.process_iter():
wpas
=
True
wpas
=
True
if
not
wpas
:
if
not
wpas
:
if
auto
not
boot
:
if
auto
not
boot
:
print
(
"
wpa_supplicant for "
+
interface
+
" not running, launch
it... "
)
print
(
"
fucking wpa_supplicant for "
+
interface
+
" not running, shit loading
it... "
)
start_wpa
(
interface
)
start_wpa
(
interface
)
else
:
else
:
print
(
"
wpa_supplicant for "
+
interface
+
" not running, exiting
... "
)
print
(
"
fucking wpa_supplicant for "
+
interface
+
" not running, fuck the hell out
... "
)
sys
.
exit
(
1
)
sys
.
exit
(
1
)
else
:
else
:
if
psutil
.
net_if_stats
()[
interface
]
.
isup
:
if
psutil
.
net_if_stats
()[
interface
]
.
isup
:
if
boot
:
if
boot
:
print
(
"
wpa_supplicant for "
+
interface
+
" already configured, exiting
... "
)
print
(
"
fucking wpa_supplicant for "
+
interface
+
" already fucked, fuck the hell
... "
)
sys
.
exit
(
0
)
sys
.
exit
(
0
)
else
:
else
:
print
(
"
wpa_supplicant for "
+
interface
+
" already configured, reconfigur
ing it"
)
print
(
"
fucking wpa_supplicant for "
+
interface
+
" already fucked, refuck
ing it"
)
start_wpa
(
interface
)
start_wpa
(
interface
)
else
:
else
:
print
(
"
wpa_supplicant for "
+
interface
+
" already configured, reconfigur
ing it"
)
print
(
"
fucking wpa_supplicant for "
+
interface
+
" already fucked, refuck
ing it"
)
start_wpa
(
interface
)
start_wpa
(
interface
)
...
...
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