aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-11-23 04:55:02 +0000
committerlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-11-23 04:55:02 +0000
commit576d0c7922e3bcfe74acdc41d48f8d3c41d78609 (patch)
tree27a19357359f01e223fb1a866e4aa32f6974e10e
parent6ef0bed0cb2996a87e4c0bba02990bf6fd0fa9af (diff)
downloadbusybox-w32-576d0c7922e3bcfe74acdc41d48f8d3c41d78609.tar.gz
busybox-w32-576d0c7922e3bcfe74acdc41d48f8d3c41d78609.tar.bz2
busybox-w32-576d0c7922e3bcfe74acdc41d48f8d3c41d78609.zip
Update to modprobe usage from Yann E. Morin
git-svn-id: svn://busybox.net/trunk/busybox@12488 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--include/usage.h64
1 files changed, 60 insertions, 4 deletions
diff --git a/include/usage.h b/include/usage.h
index 4b27984f3..ab0bb4ce4 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1945,18 +1945,74 @@
1945 "-rw------- 1 andersen andersen 0 Apr 25 17:10 /tmp/temp.mWiLjM\n" 1945 "-rw------- 1 andersen andersen 0 Apr 25 17:10 /tmp/temp.mWiLjM\n"
1946 1946
1947#define modprobe_trivial_usage \ 1947#define modprobe_trivial_usage \
1948 "[-knqrsv] [MODULE ...]" 1948 "[-knqrsv] MODULE [symbol=value ...]"
1949#define modprobe_full_usage \ 1949#define modprobe_full_usage \
1950 "Used for high level module loading and unloading.\n\n" \
1951 "Options:\n" \ 1950 "Options:\n" \
1952 "\t-k\tMake module autoclean-able\n" \ 1951 "\t-k\tMake module autoclean-able\n" \
1953 "\t-n\tJust show what would be done\n" \ 1952 "\t-n\tJust show what would be done\n" \
1954 "\t-q\tQuiet output\n" \ 1953 "\t-q\tQuiet output\n" \
1955 "\t-r\tRemove module (stacks) or do autoclean\n" \ 1954 "\t-r\tRemove module (stacks) or do autoclean\n" \
1956 "\t-s\tReport via syslog instead of stderr\n" \ 1955 "\t-s\tReport via syslog instead of stderr\n" \
1957 "\t-v\tVerbose output" 1956 "\t-v\tVerbose output\n\n"
1957#define modprobe_notes_usage \
1958"modprobe can (un)load a stack of modules, passing each module options (when\n" \
1959"loading). modprobe uses a configuration file to determine what option(s) to\n" \
1960"pass each module it loads.\n" \
1961"\n" \
1962"The configuration file is searched (in order) amongst:\n" \
1963"\n" \
1964" /etc/modprobe.conf (2.6 only)\n" \
1965" /etc/modules.conf\n" \
1966" /etc/conf.modules (deprecated)\n" \
1967"\n" \
1968"They all have the same syntax (see below). If none is present, it is\n" \
1969"_not_ an error; each loaded module is then expected to load without\n" \
1970"options. Once a file is found, the others are tested for.\n" \
1971"\n" \
1972"/etc/modules.conf entry format:\n" \
1973"\n" \
1974" alias <alias_name> <mod_name>\n" \
1975" Makes it possible to modprobe alias_name, when there is no such module.\n" \
1976" It makes sense if your mod_name is long, or you want a more reprenstative\n" \
1977" name for that module (eg. 'scsi' in place of 'aha7xxx').\n" \
1978" This makes it also possible to use a different set of options (below) for\n" \
1979" the module and the alias.\n" \
1980" A module can be aliased more than once.\n" \
1981"\n" \
1982" options <mod_name|alias_name> <symbol=value ...>\n" \
1983" When loading module mod_name (or the module aliased by alias_name), pass\n" \
1984" the \"symbol=value\" pairs as option to that module.\n" \
1985"\n" \
1986"Sample /etc/modules.conf file:\n" \
1987"\n" \
1988" options tulip irq=3\n" \
1989" alias tulip tulip2\n" \
1990" options tulip2 irq=4 io=0x308\n" \
1991"\n" \
1992"Other functionality offered by 'classic' modprobe is not available in\n" \
1993"this implementation.\n" \
1994"\n" \
1995"If module options are present both in the config file, and on the command line,\n" \
1996"then the options from the command line will be passed to the module _after_\n" \
1997"the options from the config file. That way, you can have defaults in the config\n" \
1998"file, and override them for a specific usage from the command line.\n"
1958#define modprobe_example_usage \ 1999#define modprobe_example_usage \
1959 "$ modprobe cdrom\n" 2000 "(with the above /etc/modules.conf):\n\n" \
2001 "$ modprobe tulip\n" \
2002 " will load the module 'tulip' with default option 'irq=3'\n\n" \
2003 "$ modprobe tulip irq=5\n" \
2004 " will load the module 'tulip' with option 'irq=5', thus overriding the default\n\n" \
2005 "$ modprobe tulip2\n" \
2006 " will load the module 'tulip' with default options 'irq=4 io=0x308',\n" \
2007 " which are the default for alias 'tulip2'\n\n" \
2008 "$ modprobe tulip2 irq=8\n" \
2009 " will load the module 'tulip' with default options 'irq=4 io=0x308 irq=8',\n" \
2010 " which are the default for alias 'tulip2' overriden by the option 'irq=8'\n\n" \
2011 " from the command line\n\n" \
2012 "$ modprobe tulip2 irq=2 io=0x210\n" \
2013 " will load the module 'tulip' with default options 'irq=4 io=0x308 irq=4 io=0x210',\n" \
2014 " which are the default for alias 'tulip2' overriden by the options 'irq=2 io=0x210'\n\n" \
2015 " from the command line\n"
1960 2016
1961#define more_trivial_usage \ 2017#define more_trivial_usage \
1962 "[FILE ...]" 2018 "[FILE ...]"