insmod: fix help text to not show options if only 2.6 was selected
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Mon, 24 Sep 2007 20:14:32 +0000 (20:14 +0000)
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Mon, 24 Sep 2007 20:14:32 +0000 (20:14 +0000)
git-svn-id: svn://busybox.net/trunk/busybox@19997 69ca8d6d-28ef-0310-b511-8ec308f3f277

include/usage.h
modutils/insmod.c

index eb1a641..09c8fa7 100644 (file)
 "      ::shutdown:/sbin/swapoff -a\n"
 
 #define insmod_trivial_usage \
-       "[OPTION]... MODULE [symbol=value]..."
+       USE_FEATURE_2_4_MODULES("[OPTION]... ") "MODULE [symbol=value]..."
 #define insmod_full_usage \
        "Load the specified kernel modules into the kernel" \
+       USE_FEATURE_2_4_MODULES( \
        "\n\nOptions:\n" \
        "       -f      Force module to load into the wrong kernel version\n" \
        "       -k      Make module autoclean-able\n" \
        "       -q      Quiet\n" \
        "       -L      Lock to prevent simultaneous loads of a module\n" \
        USE_FEATURE_INSMOD_LOAD_MAP( \
-       "       -m      Output load map to stdout\n") \
+       "       -m      Output load map to stdout\n" \
+       ) \
        "       -o NAME Set internal module name to NAME\n" \
-       "       -x      Do not export externs"
+       "       -x      Do not export externs" \
+       )
 
 #define install_trivial_usage \
        "[-cgmops] [sources] dest|directory"
index 3c8bb41..d7e4bef 100644 (file)
@@ -72,7 +72,7 @@
 #endif
 
 #if ENABLE_FEATURE_2_6_MODULES
-extern int insmod_ng_main( int argc, char **argv);
+extern int insmod_ng_main(int argc, char **argv);
 #endif