mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 18:23:32 +08:00
bash completion: fix __get_startable_units
This commit is contained in:
parent
b972115c97
commit
a163b64c4b
Notes:
Zbigniew Jędrzejewski-Szmek
2014-04-21 08:49:59 -04:00
Backport: bugfix
@ -56,7 +56,7 @@ __get_all_units () { __systemctl $1 list-units --all \
|
||||
__get_active_units () { __systemctl $1 list-units \
|
||||
| { while read -r a b; do echo " $a"; done; }; }
|
||||
__get_startable_units () { __systemctl $1 list-units --all -t service,timer,socket,mount,automount,path,snapshot,swap \
|
||||
| { while read -r a b c d; do [[ $c == "inactive" || $c == "failed " ]] && echo " $a"; done; }; }
|
||||
| { while read -r a b c d; do [[ $c == "inactive" || $c == "failed" ]] && echo " $a"; done; }; }
|
||||
__get_failed_units () { __systemctl $1 list-units \
|
||||
| { while read -r a b c d; do [[ $c == "failed" ]] && echo " $a"; done; }; }
|
||||
__get_enabled_units () { __systemctl $1 list-unit-files \
|
||||
|
Loading…
Reference in New Issue
Block a user