summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/busybox/files
Commit message (Collapse)AuthorAgeFilesLines
* busybox/mdev: Ensure /sys is mounted before using itKhem Raj2016-05-131-1/+3
| | | | | | | | | echo would fail if /sys is not mounted and boot would abort (From OE-Core rev: b8901336e72639342a1d784557043fa47a9d90ff) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* udhcpc: specify full path for ip command callsMark O'Donovan2016-02-111-14/+14
| | | | | | | | (From OE-Core rev: 97dd53468537968422569797122ddef4b779a488) Signed-off-by: Mark O'Donovan <modonovan@biotector.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: fix stop -vs- start typo in rcS scriptAndre McCurdy2016-01-262-5/+7
| | | | | | | | | | Also make the rcS and rcK comments match the code. (From OE-Core rev: 8b033e6faa0a6927f1e1ee2484381eff8231a549) Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: Add support for busybox-initKhem Raj2016-01-254-0/+86
| | | | | | | | | | | | | | | | | | | | | | | | in config metadata we can configure busybox based init and device initializer ( mdev ) using e.g. VIRTUAL-RUNTIME_dev_manager = "busybox-mdev" VIRTUAL-RUNTIME_login_manager = "busybox" VIRTUAL-RUNTIME_init_manager = "busybox" VIRTUAL-RUNTIME_initscripts = "initscripts" VIRTUAL-RUNTIME_keymaps = "keymaps" DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit" busybox can be used to provide init system combined with mdev it makes it a complete init system for really tiny systems. This patch uses above defines to configure features in busybox to enable the init system and mdev in a configurable manner (From OE-Core rev: 75cb4fe38fade382450c5f6f35d5dcf55962143e) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: Fix mdev block device automountingKhem Raj2015-11-161-4/+4
| | | | | | | | | | | | | | The directory ${MDEV_AUTOMOUNT_ROOT}/ which is '/run/media' may not exist yet when the device is found, so lets use -p switch to mkdir cmd so it create preceding parent dirs if needed. Remove some bash specific constructs (From OE-Core rev: d5279c49c881a9a8991fda67a70cd49756ac3a92) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox:udhcpc: Remove the routes from the right interfaceHolger Hans Peter Freyther2015-02-241-1/+1
| | | | | | | | | | | When using iproute2 to remove the route all default rules will be removed. Scope the removal by interface like it is done with ifconfig. (From OE-Core rev: 2127a57cb1b3d83f9f7640051403e47e485b132c) Signed-off-by: Holger Hans Peter Freyther <holger@moiji-mobile.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox:udhcpc: Start with a metric of 10 for routesHolger Hans Peter Freyther2015-02-241-1/+1
| | | | | | | | | | | | Linux allows to install multiple default routes with different metrics. Start with a metric above 0 to allow other parts of the system to install routes with a lower metric. (From OE-Core rev: 566441f58d398d93f948067cf399d00cf3b37eba) Signed-off-by: Holger Hans Peter Freyther <holger@moiji-mobile.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox-mdev: Support automatic mounting of block devicesmike.looijmans@topic.nl2014-12-192-0/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upon inserting a USB stick or similar device, mdev will run an automounter script that mounts valid partitions on /media/<device>. The script first checks /etc/fstab entries so that mounting on UUID or LABEL or using custom mount options is still possible. If /etc/fstab does not contain particular mount options, the script will create (and remove) the mountpoint automatically. The script also supports full disk partitions (devices without partition table). The following environments can be set in /etc/default/mdev: MDEV_AUTOMOUNT=n (Disables automounting completely) MDEV_AUTOMOUNT_ROOT=/media (Change the mount root location) Automatic mounting for a particular device can be disabled by creating a file "/dev/<device>.nomount". This is helpful in scripts that create partitions for example, and want to perform specific actions which require the device to remain unmounted. A more complex variation (using LABEL based mounts) on this script has been in use in OpenPLi for many years now, and I've used this one on many projects already, so it's about time to push this to mainline. (From OE-Core rev: 19073fb991b3e2d2304e55f94e30674adf375197) Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox-mdev: Add hotplug kernel module support to mdev.confmike.looijmans@topic.nl2014-12-191-0/+2
| | | | | | | | | | | | | | | | | Add a line to mdev.conf that tells mdev to load kernel modules when required. For example, if you built wifi support as an external module, inserting a wifi stick into a USB port will now automatically load that module into the kernel and the wlan device will be ready for configuration. Without this patch, you have to load required modules manually or force them to load at system startup. (From OE-Core rev: 11420b0566a6a085c6cb78f3f1495ed9c599e6fd) Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox/find-touchscreen.sh: Simplify script and recognize USB devicesmike.looijmans@topic.nl2014-12-191-5/+2
| | | | | | | | | | | | | | | | | Simplify the grep expression, use the more common "grep" command instead of "egrep", avoid forking extra processes, join multiple invokations into a single combined expression. Change the touchscreen regex so that it also recognizes various USB touchscreen controllers and the ad7879 i2c device. Based on code used in OpenPLi and meta-topic. (From OE-Core rev: e82353eb9f76b582122fda27c93339eac5553eb2) Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* BusyBox: Fixing broadcast address is not fed and rightly initializedyadi.hu@windriver.com2014-11-041-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | When using udhcpc along with ip command(/sbin/ip), broadcast address is not assigned. Broadcast address is successfully assigned when using udhcpc without ip command existence. with ip command: $ifconfig eth0|grep Bcast inet addr:128.224.162.141 Bcast:0.0.0.0 Mask:255.255.254.0 $ without ip command: $ifconfig eth0|grep Bcast inet addr:128.224.162.141 Bcast:128.224.163.255 Mask:255.255.254.0 $ /etc/udhcp.d/50default[simple.script] is called to set ip address by dhcp client, In case of ifconfig, it doesn't care of it's existence because it will automatically calculate broadcast address then assign it if there is no broadcast option. However in case of ip command, it requires broadcast address statically. (From OE-Core rev: 666c6a126cd12d2555361f5b573b6a26437df780) Signed-off-by: Hu <yadi.hu@windriver.com> Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* syslog: Change unused variable declaration LOCAL=0 to LOG_LOCAL=1Michael Gloff2014-09-291-1/+1
| | | | | | | | | | This fix allows the correct appending of -L to syslogd arguments when both file and remote logging are selected. (From OE-Core rev: ca68019760de6c5d5401be8eae7e65e7e6ca9021) Signed-off-by: Michael Gloff <mgloff@emacinc.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: mdev: Ensure /dev/initctl exists after tmpfs mountBen Shelton2014-07-231-0/+10
| | | | | | | | | | | | | | | | | | | | | During boot, there is a brief window during which /dev/initctl is missing, which breaks initscripts that would need to access it. This occurs because /etc/init.d/mountall.sh (rcS.d/S02...) attempts to ensure /dev/initctl is present, but /etc/init.d/mdev (rcS.d/S06...) mounts over /dev and clobbers the work done by mountall, and then does not wait synchronously until initctl is ready before continuing. To close this window, in /etc/init.d/mdev, we check whether /dev/initctl is present, and if not, we remove it and recreate it. This is the same thing that is done by /etc/init.d/mountall.sh, and we have verified that any writers of /dev/initctl will wait synchronously until sysvinit notices the change in fd and does the read, so no race exists. (From OE-Core rev: 53543363a8ab4424c17ed7aec0e8aefc4df86b3d) Signed-off-by: Richard Tollerton <rich.tollerton@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: mdev: Use mdev.seqBill Pittman2014-07-231-0/+1
| | | | | | | | | | | | | | | | /dev/mdev.seq exists to synchronize concurrently running instances of mdev and to ensure that they execute in the proper order. Without this synchronization, it is possible to have inconsistent mount points, to leak device nodes, or to have a node erroneously removed in rapid hotplug scenarios. Enable the use of mdev.seq by creating an empty /dev/mdev.seq at boot. (From OE-Core rev: 3b256653ae9ab2cf56b21cb82a8bd2a562397b27) Signed-off-by: Richard Tollerton <rich.tollerton@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: mdev: Make /dev/shm world-writableGratian Crisan2014-07-231-0/+1
| | | | | | | | | | Otherwise, users cannot use named semaphores or shared memory. (From OE-Core rev: a8f35be467836d8fa0bc8f8e85eba6f89a13f087) Signed-off-by: Richard Tollerton <rich.tollerton@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox-syslog: add more comments to systemd configuration fileChen Qi2014-02-131-0/+24
| | | | | | | | | | | | | | | Add more comments to the systemd configuration file for busybox's syslogd utility. The purpose is to easy the life of system administrators. These comments are mostly derived from the comments in syslogd.c in busybox. [YOCTO #5722] (From OE-Core rev: eba4f2bd2a0becc086f107dbd0d3ec5222c5eed2) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: update mdev.confEric Bénard2013-09-261-6/+8
| | | | | | | | | | | | | | | | | | busybox 1.21.1 's mdev has changed the way the device's name is reported so now we get input/event0 instead of event0. I think this commit is responsible of this new behaviour : http://git.busybox.net/busybox/commit/util-linux/mdev.c?id=c3cf1e30a3022453311a7e9fe11d94c7a381640e Update mdev.conf according to this behaviour so that sound and input devices are correctly populated (and now /etc/mdev/find-touchscreen.sh is executed). Tested on an arm board. (From OE-Core rev: 61b2950ebbc01f5e4fd7aece05bf371100c0c390) Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox-syslog: add configuration file /etc/syslog.confChen Qi2013-09-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | By default, busybox has CONFIG_FEATURE_SYSLOGD_CFG enabled, but it doesn't ship a configuration file. This patch adds a configuration file (/etc/syslog.conf) to the busybox-syslog package. This configuration file mainly serves as a placeholder now. The advantages of this change are: 1. Make the users aware of the fact that the /etc/syslog.conf file will actually be parsed by busybox's syslogd utility. And configuring that file will change the logging behaviour. 2. In a systemd based system, this file will prevent the same configuration file provided by the sysklogd package from messing things up. [YOCTO #5066] (From OE-Core rev: b7f6688f0700a1575037362af7a8ca94dccce471) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: enable shared memory logging for systemdPaul Eggleton2013-08-261-0/+1
| | | | | | | | | | | | | | | | | The default command-line options for launching busybox's syslogd are "-C" if using sysvinit; but because we use /etc/default/busybox-syslog when using systemd which the sysvinit initscript doesn't use, and no /etc/default/busybox-syslog is installed by default in OE-Core, the default arguments with systemd were no arguments at all with OE-Core alone. Effectively merge in the bbappend from meta-oe that adds a default file in order to set the default options to "-C" for systemd as well. (From OE-Core rev: a23aa8e7467cf2b7f4e8ff85a3aa841ff6b508e5) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: fix ip reference in simple.scriptMark Hatle2013-07-181-1/+1
| | | | | | | | | | The ip is being installed into /sbin as of the latest busybox. (From OE-Core rev: 222ae6001db286d66462c6334f7f054ca727b7be) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: Add ptestBjörn Stenberg2013-06-251-0/+7
| | | | | | | | | | | Install busybox test suite and run it as ptest. (From OE-Core rev: 0d29dc5b5f7742df60fdba90835ef77425963bde) Signed-off-by: Anders Roxell <anders.roxell@enea.com> Signed-off-by: Björn Stenberg <bjst@enea.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: Add inetd related filesTing Liu2013-04-152-0/+53
| | | | | | | | | | | | | | Add back inetd and inetd.conf files which are needed if CONFIG_INETD is enabled in the defconfig. Grabbed these files from oe-classic This patch is based on the previous patch for denzil: http://patches.openembedded.org/patch/33235/ (From OE-Core rev: 929c738787b6f513ce235ed5f7753408a570d632) Signed-off-by: Ting Liu <b28495@freescale.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: enable systemd integration for syslogdRadu Moisan2013-03-262-0/+21
| | | | | | | | | | | (From OE-Core rev: cf3618f9a57e46fb78d5be35d473e2dd5290e961) Signed-off-by: Radu Moisan <radu.moisan@intel.com> Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* hwclock.sh: check for the existence of /etc/default/rcSChen Qi2013-02-221-1/+1
| | | | | | | | | | | | | /etc/default/rcS might be missing if the init manager is not sysvinit. So we have to check for the existence of this file before sourcing it. [YOCTO #3697] (From OE-Core rev: 416519ec595f59ebeafb95bed2546635cad41559) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* hwclock.sh: improve hwclock.sh script to use UTC variableChen Qi2012-11-021-4/+5
| | | | | | | | | | | | | | Make UTC variable in /etc/default/rcS has effect on hwclock.sh. This variable declares whether the Hardware Clock is kept in UTC or local time. Default its value to "yes" and change the comment. [YOCTO #3341] (From OE-Core rev: 2bda4bbda3f3033cfb324778ef88f2aedad4a83b) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: udhcpc shouldn't be a serviceJesse Zhang2012-08-021-25/+0
| | | | | | | | | | | | | | | | | | udhcpc is invoked from the networking service, so it shouldn't exist standalone. If /etc/init.d/busybox-udhcpc is present, it will cause udhcpc to be started two times. And since the script doesn't support the stop action, it will cause udhcpc to be started even when system is being shutdown. Remove /etc/init.d/busybox-udhcpc to resolve the issues. [YOCTO #2840] (From OE-Core rev: 8329c4679ec0ce319d2a81d755a0da5b05474688) Signed-off-by: Jesse Zhang <sen.zhang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox:udhcpc: fix the root_is_nfs() functionRoy.Li2012-07-261-1/+2
| | | | | | | | | | | | | | | | | | | | | [YOCTO #2788] The system will be hung when udhcpc starts, if nfs is mounted at "/" directory and default route is different after starting udhcpc. The cause is that root_is_nfs() does not work after kernel-2.6.37, since the device name has been changed from /dev/root to ${IPADDR}:${NFSDIR} on /proc/mounts. which leads to remove the default routes to nfs server, Now we use a loose match to check if rootfs is nfs. (From OE-Core rev: 9921cb0104ea36daf909c110bb6767e5fd307da0) Signed-off-by: Roy.Li <rongqing.li@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: port improvements to simple.script from Debian (udhcpc)Andreas Oberritter2012-05-041-7/+20
| | | | | | | | | | | * Support resolvconf * Avoid bashism $((metric++)) * Use 'domain' instead of 'search' for domain parameter (From OE-Core rev: 3d4ccf98b83fe662f375cd5b029fdd602824c0e8) Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: enable dropping of duplicates in syslog, off by defaultJoshua Lock2012-01-192-0/+4
| | | | | | | | | | | | | Busybox syslog includes functionality to drop duplicated syslog entries, enable this feature in the defconfig yet disable it by default. Expose configuration of the feature through the syslog-startup.conf file and the syslog init script. (From OE-Core rev: 0afa9a63a83ee128dac522af70e1f823b7d6a6df) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: change syslog default to log to a fileJoshua Lock2012-01-191-1/+1
| | | | | | | | | | | | | | This changes the default in syslog-startup.conf to log messages to a file (/var/log/messages) because: a) we already mount /var/log as a volatile mount by default b) users are accustomed to looking at /var/log/messages as most distributions don't ship with logread (From OE-Core rev: bbf44dddcc473ca085fa5b2dda5f89c22ec31cc0) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: enable log level configuration in syslog-startup.conf and scriptJoshua Lock2012-01-192-0/+4
| | | | | | | | | | | | | It's possible to configure busybox syslog to only log messages above a certain level, expose this functionality through the syslog-startup.conf and syslog init script. Valid values are 1-8 inclusive. (From OE-Core rev: 921dfd1a2bc6ad2867da13d2b669288f9788a088) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: remove incorrect comments from syslog-startup.confJoshua Lock2012-01-191-2/+2
| | | | | | | | | Setting rotation size and generations is supported with busybox syslogd (From OE-Core rev: 5b2dcbde7290616104afe5f20c67f87dbc734939) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: drop MARKINT option from init script and syslog-startup.confJoshua Lock2012-01-192-4/+0
| | | | | | | | | | | | This option has been disabled in busybox since 2007 as it was deemed too buggy. See: http://git.busybox.net/busybox/commit/?id=4998c818919477d90674a3f220e7407c26da17f9 (From OE-Core rev: 0e85cd35a71fe14adc3da9b756b919836b687a12) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: rename syslog.conf to syslog-startup.confJoshua Lock2012-01-042-4/+7
| | | | | | | | | | | | | | | | | | | Busybox 1.19 introduced basic support for an rsyslog inspired syslog.conf whereas we've been shipping syslog.conf as a file to be sourced by the syslog init script in order to configure which options busybox's syslog is started with. Busybox 1.19 in syslog mode chokes on our syslog.conf and doesn't start. This patch renames the syslog.conf we ship to syslog-startup.conf in order to prevent busybox trying to parse the file as an rsyslog style syslog.conf Fixes [YOCTO #1848] (From OE-Core rev: b406998019b577eac7f758298cc2695372e03d15) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: add support to mdevOtavio Salvador2011-05-102-0/+42
| | | | | | | | | | This changes the packaging only if the configuration used has mdev support enabled. (From OE-Core rev: 82b163043aa53488a03bb3de3a78e5b6eeb76019) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: Support DHCP refresh without restarting the interfaceMark Hatle2011-02-071-0/+25
| | | | | | | | | | | | | | | | When the kernel is started using ip=dhcp, we want a way to be able to run the udhcp client within busybox and not reset the interface. When using the '-D' option to udhcpc, the defconfig script will be skipped allowing the refresh without changing the network settings. Also provide an initscript that can be used to detect ip=dhcp on the kernel command line, if detected it will refresh the lease and set the proper resolve.conf and related files, but not reset the interface. Original code in Wind River Linux by Greg Moffatt <greg.moffat@windriver.com> Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* Major layout change to the packages directoryRichard Purdie2010-08-2711-0/+382
Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>