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