> We probably want some kind of config option for the alias, so bash and busybox > can easily be installed side by side without interfering with each other. > > Rob
I'm not the best at wording, but see the attached patch. Matt
diff -ru busybox-1.16.1/include/applets.h busybox-1.16.1.bash/include/applets.h --- busybox-1.16.1/include/applets.h 2010-03-28 12:43:35.000000000 -0500 +++ busybox-1.16.1.bash/include/applets.h 2010-05-17 09:32:03.000000000 -0500 @@ -189,6 +189,7 @@ IF_HOSTNAME(APPLET(hostname, _BB_DIR_BIN, _BB_SUID_DROP)) IF_HTTPD(APPLET(httpd, _BB_DIR_USR_SBIN, _BB_SUID_DROP)) IF_HUSH(APPLET(hush, _BB_DIR_BIN, _BB_SUID_DROP)) +IF_HUSH_BASH_ALIAS(APPLET_ODDNAME(bash, hush, _BB_DIR_BIN, _BB_SUID_DROP, hush)) IF_HWCLOCK(APPLET(hwclock, _BB_DIR_SBIN, _BB_SUID_DROP)) IF_ID(APPLET(id, _BB_DIR_USR_BIN, _BB_SUID_DROP)) IF_IFCONFIG(APPLET(ifconfig, _BB_DIR_SBIN, _BB_SUID_DROP)) diff -ru busybox-1.16.1/shell/Config.in busybox-1.16.1.bash/shell/Config.in --- busybox-1.16.1/shell/Config.in 2010-03-19 21:58:07.000000000 -0500 +++ busybox-1.16.1.bash/shell/Config.in 2010-05-17 09:31:27.000000000 -0500 @@ -158,6 +158,13 @@ help Enable bash-compatible extensions. +config HUSH_BASH_ALIAS + bool "busybox called with bash applet starts hush" + default y + depends on HUSH + help + Enable bash applet + config HUSH_HELP bool "help builtin" default n
_______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
