Add in ifconfig and route

This commit is contained in:
Eric Andersen
2001-02-14 08:11:27 +00:00
parent 88a5ceb450
commit ec45595300
12 changed files with 1778 additions and 0 deletions

View File

@@ -158,6 +158,9 @@ const struct BB_applet applets[] = {
#ifdef BB_ID
APPLET("id", id_main, _BB_DIR_USR_BIN, id_usage)
#endif
#ifdef BB_IFCONFIG
APPLET("ifconfig", ifconfig_main, _BB_DIR_SBIN, ifconfig_usage)
#endif
#ifdef BB_INIT
APPLET_NOUSAGE("init", init_main, _BB_DIR_SBIN)
#endif
@@ -284,6 +287,9 @@ const struct BB_applet applets[] = {
#ifdef BB_RMMOD
APPLET("rmmod", rmmod_main, _BB_DIR_SBIN, rmmod_usage)
#endif
#ifdef BB_ROUTE
APPLET("route", route_main, _BB_DIR_USR_BIN, route_usage)
#endif
#ifdef BB_RPMUNPACK
APPLET("rpmunpack", rpmunpack_main, _BB_DIR_USR_BIN, rpmunpack_usage)
#endif

View File

@@ -161,6 +161,7 @@ extern void *xcalloc(size_t nmemb, size_t size);
extern char *xstrdup (const char *s);
#endif
extern char *xstrndup (const char *s, int n);
extern char * safe_strncpy(char *dst, const char *src, size_t size);
struct suffix_mult {
char *suffix;