chiark / gitweb /
machine-id-setup: avoid cyclic dependency, built twice instead
[elogind.git] / src / systemd-bash-completion.sh
index eab290e9c4313b33e3f96e239ec6536af243a623..25ab0c5e979e75122d72d3201766466100e7f37e 100644 (file)
@@ -3,8 +3,8 @@
 # Copyright 2010 Ran Benita
 #
 # systemd is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
 # (at your option) any later version.
 #
 # systemd is distributed in the hope that it will be useful, but
@@ -12,7 +12,7 @@
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 # General Public License for more details.
 #
-# You should have received a copy of the GNU General Public License
+# You should have received a copy of the GNU Lesser General Public License
 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
 
 __systemctl() {
@@ -201,7 +201,7 @@ __get_all_sessions () { systemd-loginctl list-sessions | { while read a b; do ec
 __get_all_users    () { systemd-loginctl list-users    | { while read a b; do echo "$b"; done; } ; }
 __get_all_seats    () { systemd-loginctl list-seats    | { while read a b; do echo "$a"; done; } ; }
 
-_systemd_loginctl () {
+_loginctl () {
         local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
         local verb comps
 
@@ -278,4 +278,4 @@ _systemd_loginctl () {
         COMPREPLY=( $(compgen -W "$comps" -- "$cur") )
         return 0
 }
-complete -F _systemd_loginctl systemd-loginctl
+complete -F _loginctl loginctl