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
6f63940e
Commit
6f63940e
authored
Jul 23, 2021
by
Franco (nextime) Lanza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edit. With vim.
parent
6b48dae7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
7 deletions
+22
-7
fuswim
fuswim
+22
-7
No files found.
fuswim
View file @
6f63940e
...
...
@@ -425,6 +425,7 @@ while not EXIT:
i
=
i
+
1
nets
[
name
]
=
net
nets
[
name
][
'Name'
]
==
name
.
replace
(
"/"
,
""
)
.
replace
(
".."
,
""
)
nets
[
name
][
'RealName'
]
=
name
nconf
=
read_netconf
(
nets
[
name
][
'Name'
])
nets
[
name
][
'conf'
]
=
nconf
if
auto
or
boot
:
...
...
@@ -537,15 +538,17 @@ while not EXIT:
if
fuck
.
lower
()
==
'b'
:
SM
=
"main"
elif
fuck
in
netind
.
keys
():
if
os
.
path
.
isfile
(
"/"
.
join
([
NETPATH
,
netind
[
fuck
][
'Name'
]])):
print
(
colors
.
RED
+
"
\n
Fucking removing "
+
netind
[
fuck
][
'Name'
]
+
"...
\n
"
+
colors
.
ENDC
)
try
:
sh
(
"rm -f "
+
'/'
.
join
([
NETPATH
,
netind
[
fuck
][
'Name'
]])
+
" > /dev/null 2&1"
)
except
:
print_error
(
"FUCK i can't Fucking removing "
+
netind
[
fuck
][
'Name'
]
+
"!!!"
)
if
os
.
path
.
isfile
(
"/"
.
join
([
NETPATH
,
netind
[
fuck
][
'Name'
]]))
and
netind
[
fuck
][
'Name'
]
!=
""
:
print
(
colors
.
RED
+
"
\n
Fucking removing "
+
netind
[
fuck
][
'Name'
]
+
"...
\n
"
+
colors
.
ENDC
)
try
:
sh
(
"rm -f "
+
'/'
.
join
([
NETPATH
,
netind
[
fuck
][
'Name'
]])
+
" > /dev/null 2>&1"
)
nets
[
netind
[
fuck
][
'RealName'
]][
'conf'
]
=
read_netconf
(
netind
[
fuck
][
'Name'
])
except
:
print_error
(
"FUCK i can't Fucking removing "
+
netind
[
fuck
][
'Name'
]
+
"!!!"
)
time
.
sleep
(
2
)
else
:
print_error
(
"
\n
Are you serious? you can't remove what isn't there, CUNT!"
)
time
.
sleep
(
1
)
time
.
sleep
(
2
)
elif
SM
==
"editor"
:
...
...
@@ -559,6 +562,18 @@ while not EXIT:
fuckquit
(
fuck
)
if
fuck
.
lower
()
==
'b'
:
SM
=
"main"
elif
fuck
in
netind
.
keys
():
if
os
.
path
.
isfile
(
"/"
.
join
([
NETPATH
,
netind
[
fuck
][
'Name'
]]))
and
netind
[
fuck
][
'Name'
]
!=
""
:
try
:
os
.
system
(
"vim "
+
"/"
.
join
([
NETPATH
,
netind
[
fuck
][
'Name'
]]))
nets
[
netind
[
fuck
][
'RealName'
]][
'conf'
]
=
read_netconf
(
netind
[
fuck
][
'Name'
])
except
:
print_error
(
"FUCK i can't Fucking edit "
+
netind
[
fuck
][
'Name'
]
+
"!!!"
)
time
.
sleep
(
2
)
else
:
print_error
(
"
\n
Are you serious? you can't edit what isn't there, add it first!"
)
time
.
sleep
(
2
)
if
not
auto
and
not
boot
:
os
.
system
(
"clear"
)
...
...
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