projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
959f65d
)
networkctl: make enslaved operstate green
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Sat, 9 Feb 2019 18:49:12 +0000
(
03:49
+0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Mon, 18 Feb 2019 09:04:18 +0000
(18:04 +0900)
src/network/networkctl.c
patch
|
blob
|
history
diff --git
a/src/network/networkctl.c
b/src/network/networkctl.c
index
20edac4
..
2803f52
100644
(file)
--- a/
src/network/networkctl.c
+++ b/
src/network/networkctl.c
@@
-65,7
+65,7
@@
static void operational_state_to_color(const char *state, const char **on, const
assert(on);
assert(off);
- if (
streq_ptr(state, "routable
")) {
+ if (
STRPTR_IN_SET(state, "routable", "enslaved
")) {
*on = ansi_highlight_green();
*off = ansi_normal();
} else if (streq_ptr(state, "degraded")) {