Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/modutils/modprobe-small.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/modutils/modprobe-small.c
r2725 r3232 9 9 */ 10 10 11 //applet:IF_MODPROBE_SMALL(APPLET(modprobe, _BB_DIR_SBIN, _BB_SUID_DROP))12 //applet:IF_MODPROBE_SMALL(APPLET_ODDNAME(depmod, modprobe, _BB_DIR_SBIN, _BB_SUID_DROP, modprobe))13 //applet:IF_MODPROBE_SMALL(APPLET_ODDNAME(insmod, modprobe, _BB_DIR_SBIN, _BB_SUID_DROP, modprobe))14 //applet:IF_MODPROBE_SMALL(APPLET_ODDNAME(lsmod, modprobe, _BB_DIR_SBIN, _BB_SUID_DROP, modprobe))15 //applet:IF_MODPROBE_SMALL(APPLET_ODDNAME(rmmod, modprobe, _BB_DIR_SBIN, _BB_SUID_DROP, modprobe))11 //applet:IF_MODPROBE_SMALL(APPLET(modprobe, BB_DIR_SBIN, BB_SUID_DROP)) 12 //applet:IF_MODPROBE_SMALL(APPLET_ODDNAME(depmod, modprobe, BB_DIR_SBIN, BB_SUID_DROP, modprobe)) 13 //applet:IF_MODPROBE_SMALL(APPLET_ODDNAME(insmod, modprobe, BB_DIR_SBIN, BB_SUID_DROP, modprobe)) 14 //applet:IF_MODPROBE_SMALL(APPLET_ODDNAME(lsmod, modprobe, BB_DIR_SBIN, BB_SUID_DROP, modprobe)) 15 //applet:IF_MODPROBE_SMALL(APPLET_ODDNAME(rmmod, modprobe, BB_DIR_SBIN, BB_SUID_DROP, modprobe)) 16 16 17 17 #include "libbb.h" … … 595 595 goto ret; 596 596 } 597 /* N.B. we do not stop here - 597 598 if (applet_name[0] == 'r') { 599 /* rmmod: do not remove dependencies, exit */ 600 goto ret; 601 } 602 603 /* modprobe -r: we do not stop here - 598 604 * continue to unload modules on which the module depends: 599 605 * "-r --remove: option causes modprobe to remove a module. 600 606 * If the modules it depends on are also unused, modprobe 601 * will try to remove them, too." */ 607 * will try to remove them, too." 608 */ 602 609 } 603 610 … … 697 704 //usage:#if ENABLE_MODPROBE_SMALL 698 705 706 //// Note: currently, help system shows modprobe --help text for all aliased cmds 707 //// (see APPLET_ODDNAME macro definition). 708 //// All other help texts defined below are not used. FIXME? 709 699 710 //usage:#define depmod_trivial_usage NOUSAGE_STR 700 711 //usage:#define depmod_full_usage "" … … 712 723 //usage: "Load the specified kernel modules into the kernel" 713 724 //usage: IF_FEATURE_2_4_MODULES( "\n" 714 //usage: "\nOptions:"715 725 //usage: "\n -f Force module to load into the wrong kernel version" 716 726 //usage: "\n -k Make module autoclean-able" … … 728 738 //usage:#define rmmod_full_usage "\n\n" 729 739 //usage: "Unload kernel modules\n" 730 //usage: "\nOptions:"731 740 //usage: "\n -w Wait until the module is no longer used" 732 741 //usage: "\n -f Force unload" … … 739 748 //usage: "[-qfwrsv] MODULE [symbol=value]..." 740 749 //usage:#define modprobe_full_usage "\n\n" 741 //usage: "Options:" 742 //usage: "\n -r Remove MODULE (stacks) or do autoclean" 750 //usage: " -r Remove MODULE (stacks) or do autoclean" 743 751 //usage: "\n -q Quiet" 744 752 //usage: "\n -v Verbose" … … 809 817 /* only -q (quiet) and -r (rmmod), 810 818 * the rest are accepted and ignored (compat) */ 811 getopt32(argv, "qrfsvw ");819 getopt32(argv, "qrfsvwb"); 812 820 argv += optind; 813 821
Note:
See TracChangeset
for help on using the changeset viewer.