Add the "install" applet, move get_ug_id to libbb as its used by chown,
chgrp and install.
This commit is contained in:
@ -283,6 +283,9 @@
|
||||
#ifdef CONFIG_INSMOD
|
||||
APPLET(insmod, insmod_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
|
||||
#endif
|
||||
#ifdef CONFIG_INSTALL
|
||||
APPLET(install, install_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
|
||||
#endif
|
||||
#ifdef CONFIG_IP
|
||||
APPLET(ip, ip_main, _BB_DIR_BIN, _BB_SUID_NEVER)
|
||||
#endif
|
||||
|
@ -467,5 +467,6 @@ extern void print_login_prompt(void);
|
||||
|
||||
extern void vfork_daemon_rexec(int argc, char **argv, char *foreground_opt);
|
||||
extern void get_terminal_width_height(int fd, int *width, int *height);
|
||||
extern unsigned long get_ug_id(const char *s, long (*my_getxxnam)(const char *));
|
||||
|
||||
#endif /* __LIBCONFIG_H__ */
|
||||
|
@ -1239,6 +1239,18 @@
|
||||
USAGE_INSMOD_MAP("\t-m\tOutput load map to stdout") \
|
||||
"\t-x\tdo not export externs\n"
|
||||
|
||||
#define install_trivial_usage \
|
||||
"[cgmops] [sources] <dest|directory>"
|
||||
#define install_full_usage \
|
||||
"copy files and set attributes\n\n" \
|
||||
"Options:\n" \
|
||||
"\t-c\tcopy the file, default\n" \
|
||||
"\t-g\tset group ownership\n" \
|
||||
"\t-m\tset permission modes\n" \
|
||||
"\t-o\tset ownership\n" \
|
||||
"\t-p\tpreserve date\n" \
|
||||
"\t-s\tstrip symbol tables\n"
|
||||
|
||||
#define ip_trivial_usage \
|
||||
"[ OPTIONS ] { address | link | route | tunnel } { COMMAND | help }"
|
||||
#define ip_full_usage \
|
||||
|
Reference in New Issue
Block a user