return 0
}
+# Look for modules.
+function _modprobe() {
+ COMPREPLY=()
+ cur=${COMP_WORDS[COMP_CWORD]}
+
+ ver=$(uname -r)
+ MODULES="$(find /lib/modules/$ver -name \*.ko | sed -n 's@^.*/\([^/]*\).ko$@\1@p')"
+
+ COMPREPLY=($(compgen -W "$MODULES" -- "$cur"))
+ return 0
+}
+
+# Look for loaded modules.
+function _rmmod() {
+ COMPREPLY=()
+ cur=${COMP_WORDS[COMP_CWORD]}
+
+ MODULES="$(lsmod | sed '1d;s/ .*$//')"
+
+ COMPREPLY=($(compgen -W "$MODULES" -- "$cur"))
+ return 0
+}
+
complete -F _ssh rollout
complete -F _ssh ssh
complete -F _ssh sshterm
complete -F _pid kill
complete -F _pid strace
complete -F _known_hosts kill_known_host
+complete -F _modprobe modprobe
+complete -F _rmmod rmmod