aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/busybox
Commit message (Collapse)AuthorAgeFilesLines
* busybox: backport 'ip rule suppress_{prefixlength, ifgroup}'Stefan Tomanek2017-12-131-0/+145
| | | | | | | | | This is a backport from the busybox repository (192dce4b84fb32346ebc5194de7daa5da3b8d1b4); it enables the use of the suppress_{prefixlength,ifgroup} flags for policy routing rules. Signed-off-by: Stefan Tomanek <stefan.tomanek@wertarbyte.de> (cherry picked from commit de6ff1512955953e56735896c044c7aac97e14d9)
* busybox: fix installation of cron and ntpd scripts in the default configFelix Fietkau2017-12-131-2/+2
| | | | | | Fixes: 0b24850e9778 ("busybox: don't install NTP scripts if NTP isn't configured") Signed-off-by: Felix Fietkau <nbd@nbd.name> (cherry picked from commit 3169a6a7ada17e2ea8ef4641edee68134c04b92b)
* busybox: don't install NTP scripts if NTP isn't configuredPhilip Prindeville2017-12-131-0/+4
| | | | | | | | | If you're using Chrony or NTPD you don't want the busybox NTP server as well. Make it's installation truly conditional. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com> Signed-off-by: Felix Fietkau <nbd@nbd.name> [simplify] (cherry picked from commit 0b24850e97789818fadcbce4b8de4abc429fd9f2)
* busybox: revert accidential version bumpJo-Philipp Wich2017-04-271-1/+1
| | | | | | | | | Due to an oversight during patch conflict resolution, the PKG_VERSION got accidentially bumped instead of the PKG_RELEASE field. Revert the bad version change as there exists no upstream 1.25.2 version. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* busybox: nslookup_lede: mimic output format of old Busybox appletJo-Philipp Wich2017-04-272-22/+61
| | | | | | | | | | | | | When invoking "nslookup_lede" with a domain argument and without explicit query type, issue both A and AAAA queries and display the resulting IP addresses in a numbered list style, similar to how the old BusyBox nslookup used to output the records. This is required for compatibility with certain scripts. Ref: https://forum.lede-project.org/t/nslookup-ipv6-in-lede-17-01-1 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* busybox: nslookup_lede: fix compatibility with v1.25Jo-Philipp Wich2017-04-272-6/+7
| | | | | | | | | | | | | | The ":*" optstring syntax was only recently introduced with BusyBox v1.26, older versions need a corresponding hint in the "opt_complementary" variable to denote flag values that should be stored as llist entries. Add the required opt_complementary entry to fix random SIGBUS, SIGILL or SIGSEGV related crashes on BusyBox 1.25.x when attempting to use the "-q" flag of the "nslookup_lede" applet. Ref: https://forum.lede-project.org/t/nslookup-ipv6-in-lede-17-01-1 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* busybox: fix build of nslookup_lede applet without IPv6 (#728)Jo-Philipp Wich2017-04-211-9/+33
| | | | | | | | | Protect any IPv6 related with appropriate guards to fix compilation with disabled IPv6 support in Busybox. Fixes #728. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* busybox: Move libresolv detection to LEDE MakefileFlorian Fainelli2017-04-212-18/+6
| | | | | | | | | | | Since the LEDE nslookup applet is already specific to LEDE, move the libresolv detection into the busybox Makefile that LEDE uses. This fixes builds with external toolchains that don't automatically search for headers and/or libraries without being told so. Fixes: de5b8e5d2fe1 ("busybox: add musl compatible nslookup replacement") Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
* busybox: add musl compatible nslookup replacementJo-Philipp Wich2017-04-153-0/+931
| | | | | | | | | | Add an alternative nslookup applet implementation which is compatible with musl libc wrt. name server selection and which supports a number of additional features such as query type selection. Fixes #155, #217 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* sysntpd: restore support for peer-less (standalone) modePiotr Dymacz2017-04-021-1/+1
| | | | | | | | | | | | | | | | | ntpd from Busybox supports peer-less (standalone) mode when it's started with option -l and without any peer provided with option -p. In this mode ntpd uses local time as reference and acts as stratum 1 server. This mode can be used in isolated networks, where Internet access and/or other NTP server/s are not available, but the device has some other way of getting correct time, like e.g. GPS (ugps supports setting local time by default). Support for this mode was incorrectly disabled/removed in: 1527f96ca6e196fa17c96fdb3ae520158fa5943f Signed-off-by: Piotr Dymacz <pepe2k@gmail.com> Acked-by: Jo-Philipp Wich <jo@mein.io>
* busybox: vi: backporting patches to fix ZZ and :x commandYousong Zhou2017-03-253-1/+154
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* build: use mkhash to replace various quirky md5sum/openssl callsFelix Fietkau2017-01-051-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* treewide: clean up download hashesFelix Fietkau2016-12-161-1/+1
| | | | | | Replace *MD5SUM with *HASH, replace MD5 hashes with SHA256 Signed-off-by: Felix Fietkau <nbd@nbd.name>
* busybox: adjust download mirrorHannu Nyman2016-10-211-2/+2
| | | | | | | | | | * Adjust download locations: - use https as busybox.net permanently redirects http to https - gentoo mirror has neither 1.25.0 nor 1.25.1 available, so drop it in favor of buildroot.net that has 1.25.1 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* busybox: add upstream patch to fix send_to_fromStijn Tintel2016-10-152-1/+38
| | | | | | | This fixes ntpd when queries are sent to secondary IPv4 IP addresses. See https://bugs.busybox.net/show_bug.cgi?id=9146 Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* busybox: update to version 1.25.1Stijn Tintel2016-10-155-80/+5
| | | | | | | | | Dropped upstream patches: 000-busybox-1.25.0-gzip.patch 000-busybox-1.25.0-ip.patch 000-busybox-1.25.0-ntpd.patch Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* busybox: prevent globbing, word splittingJan-Tarek Butt2016-10-151-2/+2
| | | | | | Double quote to prevent globbing and word splitting. Signed-off-by: Jan-Tarek Butt <tarek@ring0.de>
* busybox: v1.25.0 upstream patchesKevin Darbyshire-Bryant2016-09-273-0/+75
| | | | | | Include upstream patches for gzip, ip & ntpd. Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
* iproute: properly support high routing table IDsJo-Philipp Wich2016-09-273-24/+487
| | | | | | | | | | | | | | | | | | | | | The Linux kernel uses two distinct fields to denote the routing table ID in use by network routes; the 8 bit `rtm_table` member of `struct rtmsg` and the 32 bit `RTA_TABLE` netlink attribute. If a routing table ID is larger than 255, the `RT_TABLE` attribute must be used and the `rtm_table` field has to be set to the special `RT_TABLE_UNSPEC` value. This commit adds a patch which... - switches the *_n2a() and *_a2n() functions of rt_names.c to use dynamically sized, name-sorted arrays instead of fixed arrays limited to 1024 slots in order to support IDs up to 65535 - adds proper handling of high table IDs to iprule.c and iproute.c when adding, removing and dumping ip rules and network routes After this change, the Busybox ip applet fully supports IP rules with high ID numbers, using the same logic as the full iproute2. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* busybox: fix md5sumHauke Mehrtens2016-09-201-1/+1
| | | | | | | The md5sum was not updated in commit 06fa1c46fc3 "busybox: update to version 1.25.0" Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* busybox: update to version 1.25.0Hauke Mehrtens2016-09-2033-570/+482
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The following patches were removed: 010-networking-fix-uninitialized-memory-when-displaying-.patch https://git.busybox.net/busybox/commit/?id=f2c043acfcf9dad9fd3d65821b81f89986bbe54e 030-ip-fix-problem-on-mips64-n64-big-endian-musl-systems.patch https://git.busybox.net/busybox/commit/?id=4ab372d49a6e82b0bf097dedb96d26330c5f2d5f 204-udhcpc_src_ip_rebind.patch https://git.busybox.net/busybox/commit/?id=abe8f7515aded80889d78c2c1c8947997918cf90 230-ntpd_delayed_resolve.patch https://git.busybox.net/busybox/commit/?id=c8641962e4cbde48108ddfc1c105e3320778190d https://git.busybox.net/busybox/commit/?id=e4caf1dd9ce8569371a0eeb77ccf02a572dc0f11 260-arping_missing_includes.patch Not needed any more, still builds with musl for me. Add in 92fd6e6f1a "busybox: fix arping applet building on musl" The Kconfig files were updated with these commands: cd config ../convert_menuconfig.pl .../build_dir/target-*/busybox-1.25.0 cd .. ./convert_defaults.pl < .../build_dir/target-*/busybox-1.25.0/.config > Config-defaults.in Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* busybox: libnetlink: fix alignment of netlink messagesHauke Mehrtens2016-09-161-0/+100
| | | | | | | | | | | | A padding to align a message should not only be added between different attributes of a netlink message, but also at the end of the message to pad it to the correct size. Without this patch the following command does not work and returns an error code: ip link add type nlmon Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* busybox: enable sha256sum by defaultJo-Philipp Wich2016-08-182-2/+2
| | | | | | | Now that snapshot builds are only publishing SHA-256 checksums, it makes sense to ship an appropriate utility for verification. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* sysntpd: remove procd_open_trigger/procd_close_trigger callsFelix Fietkau2016-07-291-3/+0
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* busybox: Call ntpd hotplug script for every actionHans Dedecker2016-06-102-2/+1
| | | | | | | | Daemons that are waiting for a timesync are only triggered when the action is stratum. As step is the first sync action pass all actions to the ntpd hotplug scripts; it's up to the ntpd hotplugscript to filter out the actions it is interested in. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* treewide: replace nbd@openwrt.org with nbd@nbd.nameFelix Fietkau2016-06-075-7/+7
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* busybox: run sysntpd at higher priorityMaxim Storchak2016-05-301-1/+1
| | | | | | | When a router is under load ntpd would have better chance to accurately maintain system time. Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
* busybox: sysntpd - Support for NTP servers received via DHCP(v6)Hans Dedecker2016-05-242-7/+54
| | | | | | | | | | The busybox ntpd utility currently uses ntp servers specified in uci. This patch allows the ntpd utility to use NTP servers received via DHCP(v6) Following uci parameters have been added: use_dhcp : enables NTP server config via DHCP(v6) dhcp_interface : use NTP servers received only on the specified DHCP(v6) interfaces; if empty all interfaces are considered Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* busybox: fix issues with the ip command on mips64Felix Fietkau2016-05-121-0/+75
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* image / basefiles: make console password configurableJohn Crispin2016-04-181-2/+2
| | | | | Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com> Signed-off-by: John Crispin <john@phrozen.org>
* busybox: fix setting the kernel timezoneJo-Philipp Wich2016-03-311-10/+14
| | | | | | | | | | The settimeofday() syscall wrapper provided by musl filters out the timezone argument, breaking the ability to set the kernel timezone through the function. Adjust busybox patch to issue the syscall directly in order to circumvent the problem. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* busybox: update to 1.24.2Hauke Mehrtens2016-04-171-3/+3
| | | | | | | | Signed-off-by: Magnus Kroken <mkroken@gmail.com> [remove Kconfig changes] Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 49189
* busybox: fix broken default for FEATURE_IP_ROUTE_DIR (#21845)Jo-Philipp Wich2016-02-122-3/+3
| | | | | | | | | | | | | Changeset r47775 introduced a wrong default value "n" for the ip applets config search path, breaking the handling of named routing tables and other objects having alias configurations. Fix the issue by providing a proper default value aligned with the value used by full iproute2. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 48716
* busybox: fix route tables in ip rule show outputFelix Fietkau2016-02-071-0/+23
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48649
* busybox: disable timestamp in versionFelix Fietkau2016-01-281-0/+3
| | | | | | Signed-off-by: Alexander Couzens <lynxis@fe80.eu> SVN-Revision: 48539
* opkg: depend on uclient-fetch, disable busybox wgetFelix Fietkau2016-01-191-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48386
* busybox: fix broken IPv6 address displaying in ifconfigFelix Fietkau2016-01-181-0/+23
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48306
* busybox: adjust convert_menuconfig.pl to emit relative path references for ↵Felix Fietkau2016-01-034-24/+24
| | | | | | | | Config.in files and refresh generated files Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48078
* busybox: fix handling of special characters in path when converting menuconfigFelix Fietkau2016-01-031-3/+4
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48077
* busybox: Update config for 1.24.1Felix Fietkau2015-12-057-235/+412
| | | | | | | | | | | | | | | | r47288 updated to Busybox 1.24.1 but did not update the configuration. The configuration is updated by running cd config ../convert_menuconfig.pl .../build_dir/target-*/busybox-1.24.1 cd .. ./convert_defaults.pl < .../build_dir/target-*/busybox-1.24.1/.config > \ Config-defaults.in Signed-off-by: Mark Mentovai <mark@moxienet.com> SVN-Revision: 47775
* busybox: enable ip rule support by default (required for dealing with route ↵Felix Fietkau2015-11-041-1/+1
| | | | | | | | | | tables) Adds about 1.2k gzip-compressed Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47387
* busybox: enable find mtime support by defaultFelix Fietkau2015-11-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | busybox binary in openwrt neither supports stat nor find mtime. This patch adds find mtime support by default. I've compared ipk size for three different targets (ar71xx, brcm2708, x86): 209908 Okt 16 13:48 busybox_1.23.2-3_ar71xx.ipk-0before 210031 Okt 16 16:47 busybox_1.23.2-3_ar71xx.ipk-1after difference: +123 Byte 223519 Okt 16 13:06 busybox_1.23.2-3_brcm2708.ipk-0before 223720 Okt 16 13:53 busybox_1.23.2-3_brcm2708.ipk-1after difference: +201 Byte 221477 Okt 16 13:47 busybox_1.23.2-3_x86_64.ipk-0before 221622 Okt 16 13:52 busybox_1.23.2-3_x86_64.ipk-1after difference: +145 Byte Signed-off-by: Dirk Brenken <dirk@brenken.org> SVN-Revision: 47362
* busybox: fix non-portable invocation of mktempFelix Fietkau2015-10-301-0/+20
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47289
* busybox: update to version 1.24.1Felix Fietkau2015-10-3012-198/+19
| | | | | | | | | | | | | Patches applied upstream and dropped: 280-fix_find_regression.patch 300-ip-addr-improvements.patch Fixed upstream: 290-ash-fix-a-regression-in-handling-local-variables.patch (see thread: http://lists.busybox.net/pipermail/busybox/2015-April/082783.html) Signed-off-by: Magnus Kroken <mkroken@gmail.com> SVN-Revision: 47288
* 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> SVN-Revision: 46836
* busybox: fix ip applet and netlink behaviorSteven Barth2015-09-094-2/+86
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46833
* 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> SVN-Revision: 46829
* 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> SVN-Revision: 46809
* busybox: fix an ash regression in handling local variablesFelix Fietkau2015-04-171-0/+75
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45471
* 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> SVN-Revision: 45384