aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/busybox
Commit message (Collapse)AuthorAgeFilesLines
* busybox: lock: implement -n "Fail rather than wait"Felix Fietkau2015-09-091-2/+11
| | | | | | | | | | | | | | | | | | lock -n is similiar to flock -n. If the lock was already taken, fail with exit code = 1 and write error message to stderr. example: if ! lock -n /tmp/foo ; then echo lock exits. else echo lock was free. But is locked now. fi > lock was free. But is locked now. > lock exists. Signed-off-by: Alexander Couzens <lynxis@fe80.eu> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46836 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: fix ip applet and netlink behaviorSteven Barth2015-09-094-2/+86
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46833 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: improve applets & deprecate ifconfig, routeSteven Barth2015-09-082-10/+10
| | | | | | | | | | added: ip addr, ip route, ip link, traceroute6 removed: hostid, devmem, vconfig, arping deprecated (to be removed): ifconfig, route Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46829 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Disable telnet in favor of passwordless SSHSteven Barth2015-09-073-43/+4
| | | | | | | | | | This enables passworldless login for root via SSH whenever no root password is set (e.g. after reset, flashing without keeping config or in failsafe) and removes telnet support alltogether. Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46809 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: fix an ash regression in handling local variablesFelix Fietkau2015-04-171-0/+75
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45471 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: enable BUSYBOX_DEFAULT_FEATURE_TOUCH_SUSV3 by default, dnsmasq ↵Felix Fietkau2015-04-111-1/+1
| | | | | | | | relies on it Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45384 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: fix regression in handling non-existant find path arguments (#19439)Felix Fietkau2015-04-091-0/+31
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45321 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: update to version 1.23.2Felix Fietkau2015-04-0428-342/+307
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45272 3c298f89-4303-0410-b956-a3cf2f4a3e73
* toolchain: remove leftovers from old llvm-gcc experimentsFelix Fietkau2015-03-151-4/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44783 3c298f89-4303-0410-b956-a3cf2f4a3e73
* BusyBox: Netcat 1.10 compatibility require server optionJohn Crispin2015-03-132-3/+4
| | | | | | | | | | | Netcat 1.10 compatibility require server options 1.10 compatibility without server option produce error "NO OPT l!" and completely not function Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44746 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: Minor fix for glibc 2.21 compatibilityJohn Crispin2015-03-121-1/+1
| | | | | | Signed-off-by: Jeff Waugh <jdub@bethesignal.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44700 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: fix build on FreeBSD 10.1Jo-Philipp Wich2015-02-051-0/+26
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44284 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: include config files relative to the main Config.in (#18522)Jo-Philipp Wich2014-12-121-2/+2
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43653 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ntp: add hotplug class for ntp-eventsSteven Barth2014-11-283-1/+7
| | | | | | | | Based on a patch by Luiz Angelo Daros de Luca Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43421 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: turn on BUSYBOX_DEFAULT_FEATURE_SH_NOFORK to slightly improve ↵Felix Fietkau2014-11-231-1/+1
| | | | | | | | performance Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43348 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: add 2 upstream fixesNicolas Thill2014-11-063-1/+119
| | | | | | Signed-off-by: Nicolas Thill <nico@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43191 3c298f89-4303-0410-b956-a3cf2f4a3e73
* license info - revert r43155John Crispin2014-11-031-1/+1
| | | | | | | | turns out that r43155 adds duplicate info. Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43167 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Add more license tags with SPDX identifiersJohn Crispin2014-11-031-1/+1
| | | | | | | | | | | | | | | | | | Note, that licensing stuff is a nightmare: many packages does not clearly state their licenses, and often multiple source files are simply copied together - each with different licensing information in the file headers. I tried hard to ensure, that the license information extracted into the OpenWRT's makefiles fit the "spirit" of the packages, e.g. such small packages which come without a dedicated source archive "inherites" the OpenWRT's own license in my opinion. However, I can not garantee that I always picked the correct information and/or did not miss license information. Signed-off-by: Michael Heimpold <mhei@heimpold.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43155 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Add a few SPDX tagsSteven Barth2014-11-021-1/+1
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43151 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: make high ASCII chars printable (#7993)Jo-Philipp Wich2014-10-272-1/+21
| | | | | | | | | | | | Currently busybox utils like "ls" fail to display filenames containing UTF-8 characters, replacing any special characters with "?". Change libbb's printable_string() function to allow high ASCII characters so that unicode filenames are displayed correctls. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43084 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: remove validation message from bootupSteven Barth2014-10-021-1/+1
| | | | | | | | | | | | A message: uinteger - 9 = true is displayed during boot. This is the result of the validate_data command checking the cron log level. As the output is not interesting, only the result, filter... Signed-off-by: Michel Stam <m.stam@fugro.nl> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42751 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package/*: remove useless explicit set of function returncodeJohn Crispin2014-08-251-1/+0
| | | | | | | | | | | | | | | | | | | | | | somebody started to set a function returncode in the validation stuff and everybody copies it, e.g. myfunction() { fire_command return $? } a function automatically returns with the last returncode, so we can safely remove the command 'return $?'. reference: http://tldp.org/LDP/abs/html/exit-status.html "The last command executed in the function or script determines the exit status." Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42278 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: Fix pam_start link errors when PAM support is enabledJohn Crispin2014-08-181-2/+8
| | | | | | | | | | Patch to BusyBox Makefile to fix linker errors when PAM support is enabled by CONFIG_BUSYBOX_CONFIG_PAM=y. Typical errors include: login.c:(.text.login_main+0x122): undefined reference to `pam_start' Signed-off-by: Stephen Parry <sgparry@mainscreen.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42195 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: fix validation in sysntpd init scriptLuka Perkov2014-06-301-0/+1
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41415 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: disable the PKG_CHECK_FORMAT_SECURITY check for the failing packagesFelix Fietkau2014-06-301-0/+1
| | | | | | | | The idea is to gradually fix the packages Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41411 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: use ntp enabled config optionJohn Crispin2014-06-272-4/+6
| | | | | | | | | Even if enabled option is missing from ntp configuration we are still keeping default behavior. Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41355 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: remove redundant 6rd-patchSteven Barth2014-05-291-18/+0
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40882 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: udhcpc source IP rebind patchSteven Barth2014-05-291-0/+53
| | | | | | | | | | | | Patch sets the source IP address of DHCP request messages during rebind to the IP address assigned to the udhcpc client. Source address 0.0.0.0 can only be used by a client prior to obtaining its IP address (see RFC2131 § 4.1). Source IP address behavior lines up now with the ISC dhcp client implementation for DHCP request messages during rebind and DHCP release messages. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40878 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: add back missing crond config changeFelix Fietkau2014-05-251-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40853 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: update to 1.22.1Felix Fietkau2014-05-2561-3076/+1068
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40852 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: remove obsolete httpd patchesFelix Fietkau2014-05-254-157/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40851 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: remove obsolete insmod patchesFelix Fietkau2014-05-252-170/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40850 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: drop a udhcpc patch that has been superseded by upstream changes a ↵Felix Fietkau2014-05-251-99/+0
| | | | | | | | long time ago Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40849 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: remove obsolete init patchFelix Fietkau2014-05-251-15/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40848 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: use a config option instead of a patch to select the cron directoryFelix Fietkau2014-05-252-23/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40847 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: backport dd conv=swab from 1.22John Crispin2014-03-301-0/+97
| | | | | | | | | | | | | | | | | | | | Some boards have the WLAN EEPROM stored in flash in big-endian format, whereas the driver requires the EEPROM in little-endian format. The conv=swab option in dd is particularly useful in this case. This patch backports this feature from busybox-1.22 based on the following commits: commit b941316ae5313be523b64f0a9151ee4decb2b35b dd: support conv=swab commit 8395bd3f52f8ed46fa3ffc316b2d113afa748bae dd: fix example in a comment. No code changes. commit 5b9910f0a4a1b7976c46e6f849aaa263180e5521 dd: fail if swab is attempted on odd-sized block commit 0ff0b320a2dbb5e0b5fa245ffd9b2648d7026843 dd: code shrink v2: include the commit messages from upstream Signed-off-by: Matti Laakso <malaakso@elisanet.fi> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40327 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: remove obsolete brctl linux 2.4 compat patchFelix Fietkau2014-03-211-74/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39987 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: remove obsolete awk include() patchFelix Fietkau2014-03-211-217/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39986 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: fix existing "export -n" in ashFelix Fietkau2014-03-201-2/+2
| | | | | | | | | | | | | | | | | | Minor fix to existing patch which did not correctly implement -n support for the export command in ash. The VEXPORT flag of a variable was set in the first call to setvareq() and then remained set in the subsequent call, because the variable already existed in the environment. Although /lib/functions.sh by default does not export variables (NO_EXPORT=1), this issue was leading to dirty environments. Without this fix: (ash) export A=1; export -n B=2; /bin/ash -c "echo \$A, \$B" 1, 2 With this fix: (ash) export A=1; export -n B=2; /bin/ash -c "echo \$A, \$B" 1, Signed-off-by: Christophe Lermytte <openwrt@lermytte.be> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39968 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: fix processing of multiple NTP servers in the config (#15294)Felix Fietkau2014-03-171-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39935 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: Add help documentation in menuconfigJo-Philipp Wich2014-01-311-0/+8
| | | | | | | | Explaining why you shouldn't be here, and about version tainting. Signed-off-by: Karl Palsson <karlp@remake.is> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39440 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: add a reworked implementation of menuconfig support, this time with ↵Felix Fietkau2014-01-3131-895/+10807
| | | | | | | | a guard option that keeps all symbols at default values until an extra option is activated Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39435 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: fix dependency on librpc (#14636)Jo-Philipp Wich2014-01-311-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39434 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: enable the devmem appletFlorian Fainelli2014-01-141-1/+1
| | | | | | | | | | The devmem applet allows poking at HW registers and as such is a valuable tool to have to avoid recompiling kernels or resorting to external HW adapters to modify HW behavior. Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39285 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: add back support for top-level menuconfig based config overrides ↵Felix Fietkau2013-12-173-6/+7
| | | | | | | | (can be used by custom packages to alter the config) Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39125 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: restore init scriptsJo-Philipp Wich2013-12-171-8/+3
| | | | | | | | | | Since the removal of the busybox menuconfig entries, the init scripts for cron, telnet and ntp are not packaged anymore. Unconditionally ship them from now on. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39123 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: disable module utils, kmodloader provides themFelix Fietkau2013-12-171-6/+7
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39118 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: fix typo in Config.in (#14628)Felix Fietkau2013-12-171-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39114 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: add support for config overrides via env/busybox-configFelix Fietkau2013-12-161-0/+6
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39107 3c298f89-4303-0410-b956-a3cf2f4a3e73
* busybox: remove busybox menuconfig from top level menuconfigFelix Fietkau2013-12-1629-8185/+886
| | | | | | | | | This will help with avoiding bogus bug reports caused by stale configs and bad cases of user tinkering :) Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39106 3c298f89-4303-0410-b956-a3cf2f4a3e73