diff options
Diffstat (limited to 'include/usage.h')
-rw-r--r-- | include/usage.h | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/include/usage.h b/include/usage.h index e595bd9d9..12c45b45f 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -1841,6 +1841,26 @@ | |||
1841 | "busybox: OK\n" \ | 1841 | "busybox: OK\n" \ |
1842 | "^D\n" | 1842 | "^D\n" |
1843 | 1843 | ||
1844 | #define mdev_trivial_usage \ | ||
1845 | "[-s]" | ||
1846 | #define mdev_full_usage \ | ||
1847 | "\ts\tScan /sys and populate /dev during system boot\n\n" \ | ||
1848 | "Called with no options (via hotplug) it uses environment variables\n" \ | ||
1849 | "to determine which device to add/remove." | ||
1850 | #ifdef CONFIG_FEATURE_MDEV_CONFIG | ||
1851 | #define mdev_notes_usage \ | ||
1852 | "The mdev config file contains lines that look like:\n" \ | ||
1853 | " hd[a-z][0-9]* 0:3 660\n\n" \ | ||
1854 | "That's device name (with regex match), uid:gid, and permissions.\n\n" \ | ||
1855 | "Optionally, that can be followed (on the same line) by an asterisk\n" \ | ||
1856 | "and a command line to run after creating the corresponding device(s),\n"\ | ||
1857 | "ala:\n\n" \ | ||
1858 | " hdc root:cdrom 660 *ln -s hdc cdrom\n\n" \ | ||
1859 | "Config file parsing stops on the first matching line. If no config\n"\ | ||
1860 | "entry is matched, devices are created with default 0:0 660. (Make\n"\ | ||
1861 | "the last line match .* to override this.)\n\n" | ||
1862 | #endif | ||
1863 | |||
1844 | #define mesg_trivial_usage \ | 1864 | #define mesg_trivial_usage \ |
1845 | "[y|n]" | 1865 | "[y|n]" |
1846 | #define mesg_full_usage \ | 1866 | #define mesg_full_usage \ |
@@ -2822,10 +2842,12 @@ | |||
2822 | "\t-a\tStart swapping on all swap devices" | 2842 | "\t-a\tStart swapping on all swap devices" |
2823 | 2843 | ||
2824 | #define switch_root_trivial_usage \ | 2844 | #define switch_root_trivial_usage \ |
2825 | "NEW_ROOT NEW_INIT [ARGUMENTS_TO_INIT]" | 2845 | "[-c /dev/console] NEW_ROOT NEW_INIT [ARGUMENTS_TO_INIT]" |
2826 | #define switch_root_full_usage \ | 2846 | #define switch_root_full_usage \ |
2827 | "Use from PID 1 under initramfs to free initramfs, chroot to NEW_ROOT,\n" \ | 2847 | "Use from PID 1 under initramfs to free initramfs, chroot to NEW_ROOT,\n" \ |
2828 | "and exec NEW_INIT.\n" | 2848 | "and exec NEW_INIT.\n\n" \ |
2849 | "Options:\n" \ | ||
2850 | "\t-c\tRedirect console to device on new root" | ||
2829 | 2851 | ||
2830 | #define sync_trivial_usage \ | 2852 | #define sync_trivial_usage \ |
2831 | "" | 2853 | "" |