6 Commits

Author SHA1 Message Date
Ville Skyttä
c6ec8f979b modprobe: Try parsing help before using hardcoding option list 2014-06-09 09:40:47 +03:00
Peter Wu
454f67a047 modprobe: fix params with multi-line descriptions
The command `modprobe -p nouveau` outputs:

    tv_norm:Default TV norm.
    		Supported: PAL, PAL-M, PAL-N, PAL-Nc, NTSC-M, NTSC-J,
    			hd480i, hd480p, hd576i, hd576p, hd720p, hd1080i.
    		Default: PAL
    		*NOTE* Ignored for cards with external TV encoders. (charp)
    tv_disable:Disable TV-out detection (int)
    ...

This breaks module parameter auto-completion, so only suggest parameters
which are not preceded by whitespace. Tested with kmod 17-1 on Arch
Linux.

Modified-By: Ville Skyttä <ville.skytta@iki.fi>
2014-06-09 09:21:58 +03:00
Ville Skyttä
1ed2377c89 Various mostly array element unsetting fixes under failglob 2014-06-03 23:11:01 +03:00
Ville Skyttä
d08b9f2335 modprobe: Don't suggest installing already installed modules. 2013-01-29 23:28:13 +02:00
Igor Murzov
199a63bd4d insmod, modprobe: Don't hardcode path to modinfo (Alioth: #313569) 2012-03-14 01:00:22 +04:00
Igor Murzov
f67818e023 modprobe, modinfo, insmod: Move modprobe and modinfo completions to their own files.
Also fix some options handling and errors in unusual usecases (Alioth: #313498).
Patch is partially written by Lekensteyn <lekensteyn@gmail.com>
Reviewed-by: Sergey V <sftp.mtuci@gmail.com>
2012-01-13 00:19:26 +04:00