aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-03-15 20:48:45 +0000
committerEric Andersen <andersen@codepoet.org>2001-03-15 20:48:45 +0000
commit48dcc16548bb35837fa80a3f3d7437cf9e850d9f (patch)
tree149852dd3a0916f1c51a825d230c30f0a861b428
parent730cdb19047d7b344d77e5061703de8ee6f23f31 (diff)
downloadbusybox-48dcc16548bb35837fa80a3f3d7437cf9e850d9f.tar.gz
Don't confuse people. If the run 'ifconfig' and they didn't
compile with BB_FEATURE_IFCONFIG_STATUS turned on, it will now print a message telling them as much. -Erik
-rw-r--r--ifconfig.c4
-rw-r--r--networking/ifconfig.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/ifconfig.c b/ifconfig.c
index 75bcf38e8..704909c69 100644
--- a/ifconfig.c
+++ b/ifconfig.c
@@ -15,7 +15,7 @@
* Foundation; either version 2 of the License, or (at
* your option) any later version.
*
- * $Id: ifconfig.c,v 1.8 2001/03/12 09:57:59 mjn3 Exp $
+ * $Id: ifconfig.c,v 1.9 2001/03/15 20:48:45 andersen Exp $
*
*/
@@ -278,7 +278,7 @@ int ifconfig_main(int argc, char **argv)
#ifdef BB_FEATURE_IFCONFIG_STATUS
return display_interfaces(argc ? *argv : NULL);
#else
- show_usage();
+ error_msg_and_die( "ifconfig was not compiled with interface status display support.");
#endif
}
diff --git a/networking/ifconfig.c b/networking/ifconfig.c
index 75bcf38e8..704909c69 100644
--- a/networking/ifconfig.c
+++ b/networking/ifconfig.c
@@ -15,7 +15,7 @@
* Foundation; either version 2 of the License, or (at
* your option) any later version.
*
- * $Id: ifconfig.c,v 1.8 2001/03/12 09:57:59 mjn3 Exp $
+ * $Id: ifconfig.c,v 1.9 2001/03/15 20:48:45 andersen Exp $
*
*/
@@ -278,7 +278,7 @@ int ifconfig_main(int argc, char **argv)
#ifdef BB_FEATURE_IFCONFIG_STATUS
return display_interfaces(argc ? *argv : NULL);
#else
- show_usage();
+ error_msg_and_die( "ifconfig was not compiled with interface status display support.");
#endif
}