Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
d2f13810
Unverified
Commit
d2f13810
authored
May 24, 2021
by
Aristo Chen
Committed by
GitHub
May 24, 2021
Browse files
Exclude unavailable interface for nmcli (#144)
parent
28e2a34f
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian-config-jobs
View file @
d2f13810
...
...
@@ -367,7 +367,7 @@ function jobs ()
if
[[
-n
$SYSTEMDNET
]]
;
then
systemd_ip_editor
"
${
SELECTED_ADAPTER
}
"
else
if
[[
-n
$(
LC_ALL
=
C nmcli device status |
grep
$SELECTED_ADAPTER
)
]]
;
then
if
[[
-n
$(
LC_ALL
=
C nmcli device status |
grep
$SELECTED_ADAPTER
|
grep
-v
unavailable
)
]]
;
then
nm_ip_editor
"
$SELECTED_ADAPTER
"
else
ip_editor
"
$SELECTED_ADAPTER
"
"
$SELECTED_ADAPTER
"
"/etc/network/interfaces"
...
...
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