aboutsummaryrefslogtreecommitdiffstats
path: root/package/system
Commit message (Collapse)AuthorAgeFilesLines
* procd: nand: make it possible to configure kernel and ubi partitionChristian Lamparter2017-03-221-2/+2
| | | | | | | | | | With this patch, the nand.sh script no longer overwrites CI_KERNELPART and CI_UBIPART if they have been set before. This allows platforms specify alternative values for these variables. Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* opkg: gracefully handle missing $PATH, fix build warningsJo-Philipp Wich2017-03-151-4/+5
| | | | | | | | | | | | | | | | | | | | | | | Update to latest Git in order to import the following fixes: cfe46c7 opkg_active_list_test: mark functions static, swap strcmp() with memcmp() 0b60d6a libopkg_test: mark functions static, remove unused opkg_test() 28b5e15 pkg_parse: fix bad message level for opkg_msg() call d9e5814 pkg_parse: remove unused variable in pkg_parse_line() 1654bcc pkg_parse: remove const requirement from pkg_parse_line() 53e199e pkg_hash: remove unused variable in pkg_hash_load_feeds() da8d599 pkg_depends: add missing parse_replacelist() prototype f0c0a80 opkg_utils: add missing header e450488 libopkg: remove unused progress parameters from opkg_download() f4a55d1 libopkg: remove unused progress callback 7cbc466 libopkg: remove unused variable from opkg_install_package() 6fbf8a9 libbb: remove unused variables 7975c73 libbb: change gzip_read() buffer argument to void * 6e28563 libbb: fix gzip_thread() warnings 1ff2475 libopkg/opkg_cmd.c: more robust PATH handling 5dc3e33 libopkg: specify "/bin/sh" instead of "sh" Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* procd.sh: use parameterized respawn valuesClaudiu Brasovean2017-03-071-1/+3
| | | | | | | | | | continue work started here: http://patchwork.ozlabs.org/patch/520859 Extend /etc/config/system with parameters to set the default respawn treshold and respawn timeout for procd launched services that have respawn enabled. This results in cleaner init scripts, while making sure services have respawn parameters set. Signed-off-by: Claudiu Brasovean <cbrasho@gmail.com>
* procd: update to git HEAD versionHans Dedecker2017-03-061-3/+3
| | | | | | | 8f218f5 procd: service gets deleted when its last instance is freed 35209a0 procd: update modprobe path Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* opkg: fix several package installation bugsJo-Philipp Wich2017-03-061-3/+3
| | | | | | | | | | | | | | | Update to latest Git in order to import the following fixes: 19070b6 unarchive: fix possible segmentation fault in deb_extract() 758527e pkg: forward "provided_by_hand" flag in pkg_merge() 1fdc2ca pkg: mark bit fields in pkg_t unsigned 15fc1ee opkg_cmd: avoid null pointer dereference in opkg_what_depends_conflicts_cmd() 439c89e opkg_cmd: fix endless loop in whatprovides/whatreplaces 0fb3e9f pkg_depends: propagate virtual provided detail flag to providers 793155f pkg_depends: fix unsatisfied dependency installation order b1dc770 libopkg: fix some overly aggressive line wrapping in pkg_depends.c Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* fstools: add blockdJohn Crispin2017-03-062-3/+38
| | | | | | this daemon replaces mountd. Signed-off-by: John Crispin <john@phrozen.org>
* mountd: drop in favour of blockdJohn Crispin2017-03-063-70/+0
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* ubox: update to the latest versionFelix Fietkau2017-03-031-3/+3
| | | | | | 21a4bd0 kmodloader: modprobe: return 0 for loaded modules Signed-off-by: Felix Fietkau <nbd@nbd.name>
* opkg: mark as essential (FS#571)Jo-Philipp Wich2017-03-011-0/+1
| | | | | | Flag the opkg package as essential to avoid accidential uninstalls of it. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* ubus: update to the latest versionFelix Fietkau2017-02-251-3/+3
| | | | | | | | | | c09e4f0 ubusd: fix incomplete copy of shared buf during queue-ing 453b87f cli: add support for subscribing to objects 6eb3c96 cli: do not use default timeout for listen dfe3383 libubus: reset ctx->sock.error when doing ubus reconnect 34c6e81 cli: fix listen_timeout compile issue Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ubox: fix possible address alignment issueYousong Zhou2017-02-241-3/+3
| | | | | | | | Fixes FS#544 3dc78a4 kmodloader: don't store aliases info in struct module Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* opkg: fix stray printf() (#551)Jo-Philipp Wich2017-02-231-3/+3
| | | | | | | Update to latest Git head to get rid of a stray printf() causing unwanted output in the "opkg list-upgradable" command. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* opkg: fix handling conffiles in status listsJo-Philipp Wich2017-02-221-3/+3
| | | | | | | A missing list pointer initialization caused opkg to ignore conffile entries from status files, breaking the conffile tracking on the target. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* ubox: update to the latest versionFelix Fietkau2017-02-211-3/+3
| | | | | | | | c553354 cmake: fix typo 8973576 kmodloader: fix not being able to find some modules fce9382 cmake: Check for getrandom system call Signed-off-by: Felix Fietkau <nbd@nbd.name>
* opkg: re-enable usign supportJo-Philipp Wich2017-02-201-2/+2
| | | | | | | | | The switch to cmake caused the -DHAVE_USIGN flag to get lost, disabling compilation of the correspondinf support code. Update to latest Git head which enables usign support by default. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* opkg: switch to own fork to improve memory usageJo-Philipp Wich2017-02-1930-3495/+24
| | | | | | | | | | Switch to our own fork of opkg to significantly reduce the required amount of memory when updating lists or installing packages. Preliminary tests showed a usage drop of about 90% during these operations, from ~3.7MB with unmodified opkg to ~360KB with our custom fork. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* procd: update to latest git HEADJohn Crispin2017-02-151-3/+3
| | | | | | | 5f91241 procd: add cancel_timeout on rc scripts when a runtime_timeout is specified 961dc69 procd: stop service using SIGKILL if SIGTERM failed to do so Signed-off-by: John Crispin <john@phrozen.org>
* procd: fix default timeout for reload trigger actionsDenis Osvald2017-02-151-5/+2
| | | | | | | | | | | | | Default trigger action timeout was added to procd.sh in commit f88e3a4c0 (procd: add default timeout for reload trigger actions) However, the timeout value was not placed under the correct JSON-script array nesting level and thus did not apply. To fix this and make the timeout actually apply to the reload triggers, we place it in the correct scope, that is the per-trigger array. Fixes: f88e3a4c0abb60bb76a7678dd30dfdc8a808a2f1 Signed-off-by: Denis Osvald <denis.osvald@sartura.hr>
* fstools: update to the latest versionFelix Fietkau2017-02-111-3/+3
| | | | | | Fixes compatibility issues with glibc 2.25 Signed-off-by: Felix Fietkau <nbd@nbd.name>
* procd: update to the latest versionFelix Fietkau2017-02-111-3/+3
| | | | | | Fixes compatibility issues with glibc 2.25 Signed-off-by: Felix Fietkau <nbd@nbd.name>
* procd: update to latest git HEADJohn Crispin2017-02-091-3/+3
| | | | | | cdc3dab ujail: fix signal forwarding Signed-off-by: John Crispin <john@phrozen.org>
* ubus: update to the latest versionFelix Fietkau2017-02-041-3/+3
| | | | | | | | | Adds the following fixes: 91acde6 libubus: do not modify uloop_cancelled 763b9b2 libubus: reset ctx->sock.eof to fix reconnect issues Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ubox: support quiet modprobe, support millisecond log timestamp accuracyJo-Philipp Wich2017-02-021-3/+3
| | | | | | | | | Update ubox to latest Git HEAD in order to import the following fixes: ac2d43e kmodloader: support '-q' quiet option f8d3d16 ubox: Add an option for more accurate timestamps in log Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* rpcd: Explicitly link with lcryptFlorian Fainelli2017-01-291-0/+2
| | | | | | | | | | | Fixes build issues with some toolchains that don't add lcrypt in the default search paths: CMakeFiles/rpcd.dir/session.c.o: In function `rpc_login_test_password': build_dir/target-mipsel-linux-gnu/rpcd-2016-12-03-0577cfc1/session.c:823: undefined reference to `crypt' collect2: error: ld returned 1 exit status Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
* ubox: import kmodloader fixesJo-Philipp Wich2017-01-261-3/+3
| | | | | | | | | | | | | | | | Update ubox to latest Git head in order to import the following fixes: 14839f0 kmodloader: make insert_module() idempotent 6e3c6dc kmodloader: add module alias awareness 9371411 kmodloader: fix out-of-bound access when parsing .modinfo a62c946 kmodloader: modprobe: skip possible command line arguments 46a4b5f kmodloader: log to kmsg when loading directories of modules eacc426 kmodloader: remove redundant glob wildcard char 8488bb5 ubox: Initialize conditionally uninitialized variable db070f1 ubox: Fix some memory leaks acc48b5 kmodloader: Fix typo in error message Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* ubox: install kernel module utilities to /sbin directoryYousong Zhou2017-01-261-5/+5
| | | | | | | | This is how other Linux distributions are doing and kernel modprobe_path[] of request_module() also has a default value of /sbin/modprobe Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* procd: update procd.sh to disallow signal-numbers, enforce signal-namesBastian Bittorf2017-01-261-1/+4
| | | | | | | | | | | | A given signal-name is now converted to the corresonding number. In general it's good style to use names (readability) and it's more portable: signal numbers can be architecture-dependent, so we are more safe giving names. A real world example is signal 10, which is BUS on ramips and USR1 on PPC. All users of 'procd_send_signal' must change their code to reflect this. Signed-off-by: Bastian Bittorf <bb@npl.de>
* procd: update to latest git HEADMatthias Schiffer2017-01-261-3/+3
| | | | | | 0f58977 init: fix /tmp permissions on zram Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* opkg: clarify messages and errors related to downloadsHannu Nyman2017-01-262-1/+62
| | | | | | | | | | | | | Clarify opkg's messages related to downloads: * more visible error message for package list download failure * separate error message for signature file download error * if wget returns 4, signal the network error more clearly * remove '.' from end of filenames and URLs * try signature check only if the package list was downloaded ok. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* ubus: update to the latest versionFelix Fietkau2017-01-221-3/+3
| | | | | | Adds uloop related libubus fixes Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ubus: update to the latest versionFelix Fietkau2017-01-201-3/+3
| | | | | | | | | - Adds support for passing file descriptors in ubus invoke requests - Fixes clearing pending timers on ubus_shutdown() - Fixes checking the amount of written data in ubusd - Fixes an ubusd crash when trying to subscribe to system objects Signed-off-by: Felix Fietkau <nbd@nbd.name>
* lede-keyring: bundle latest usign certificatesJo-Philipp Wich2017-01-201-3/+3
| | | | | | Includes the public usign certificates used by the 17.01.* release builds. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* ubox: turn logd into a separate packageAndrej Vlasic2017-01-161-2/+14
| | | | | | | | Currently system log is always included as a part of ubox. Add logd as a seperate package and add it to default packages list. Signed-off-by: Andrej Vlasic <andrej.vlasic@sartura.hr> Signed-off-by: Luka Perkov <luka.perkov@sartura.hr>
* opkg: use default PKG_BUILD_DIRMatthias Schiffer2017-01-161-1/+0
| | | | | | | opkg doesn't have BUILD_VARIANTs anymore, so the previously defined PKG_BUILD_DIR would lead to a weird 'opkg-' path component. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* mountd: drop USB related dependenciesFelix Fietkau2017-01-131-1/+1
| | | | | | That way we can avoid making it nonshared Signed-off-by: Felix Fietkau <nbd@nbd.name>
* Revert the recent dependency and metadata scanning reworkFelix Fietkau2017-01-111-1/+1
| | | | | | | | | | | | | | | This reverts the following commits: fbe522d1204149b6c128d55e360bfc15fa8258e1 278ad007ee03c4455c3507322e34b0e3e6ec050d 863888e44f7a1fb1675a2e7a2eaabfec3561d2a2 96daf6352f6e04bc22789466cb5409b93fbec191 cfd83555fc4f0bab18a26f6812da18e64df46ff3 This seems to trigger some mconf bugs when built with all feeds packages, so I will try to find a less intrusive solution before the release. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mountd: allow build without USB_SUPPORTFelix Fietkau2017-01-111-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* procd: add support for overriding the tar sysupgrade board nameFelix Fietkau2017-01-111-1/+10
| | | | | | Useful for providing images that work for multiple devices Signed-off-by: Felix Fietkau <nbd@nbd.name>
* procd: update mirror hashJohn Crispin2017-01-101-1/+1
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* opkg: drop S/MIME supportFelix Fietkau2017-01-101-59/+8
| | | | | | | | | | It has never been used by default (due to being too bloated), and it is properly replaced by usign (which has been the default for a long time now). Remove this feature to simplify the build system Signed-off-by: Felix Fietkau <nbd@nbd.name>
* procd: update to latest git HEADJohn Crispin2017-01-101-2/+2
| | | | | | f706903 ujail: add basic /dev files Signed-off-by: John Crispin <john@phrozen.org>
* build: use mkhash to replace various quirky md5sum/openssl callsFelix Fietkau2017-01-051-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* rpcd: Update to 2016-12-03Florian Fainelli2017-01-021-3/+3
| | | | | | | | | | Brings in the following changes: 0577cfc1acdb cmake: Find libubox/blobmsg_json.h 26c98ec94d7a sys: Check return values of chdir and write f4089654a399 cmake: Find libubus.h Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
* fstools: Update to 2016-12-04Florian Fainelli2017-01-021-3/+3
| | | | | | | Brings in the following changes: 84b530a732b1 libfstools: Check return values for fread and system Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
* opkg: vfork external gzip command to uncompress dataJo-Philipp Wich2016-12-274-23/+746
| | | | | | | | | | | | | | | | | | Opkg's builtin decompression code is unsuitable to process nested archives as it uses a single shared state and relies on undefined seek behaviour for pipes. Rework the extraction logic to use the external gzip command as I/O filter for decompressing data and remove the builtin inflate code entirely. This shrinks the final opkg binary by about 4KB and results in less runtime memory consumption due to efficient use of vfork() and less copy-on-write operations in the forked child. Rework by Felix: create a thread that relays data to the gzip process instead of using a fragile poll loop Signed-off-by: Jo-Philipp Wich <jo@mein.io> Signed-off-by: Felix Fietkau <nbd@nbd.name>
* Revert "opkg: vfork external gzip command to uncompress data"Stijn Tintel2016-12-274-746/+23
| | | | | | This reverts commit 0090adcd5c94adad2168cd9b338f45827533c81d. It breaks reading package list in /tmp/opkg-lists, making it impossible to install packages from feeds in snapshots.
* opkg: add missing dependency on libpthreadFelix Fietkau2016-12-261-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* opkg: vfork external gzip command to uncompress dataJo-Philipp Wich2016-12-264-23/+746
| | | | | | | | | | | | | | | | | | Opkg's builtin decompression code is unsuitable to process nested archives as it uses a single shared state and relies on undefined seek behaviour for pipes. Rework the extraction logic to use the external gzip command as I/O filter for decompressing data and remove the builtin inflate code entirely. This shrinks the final opkg binary by about 4KB and results in less runtime memory consumption due to efficient use of vfork() and less copy-on-write operations in the forked child. Rework by Felix: create a thread that relays data to the gzip process instead of using a fragile poll loop Signed-off-by: Jo-Philipp Wich <jo@mein.io> Signed-off-by: Felix Fietkau <nbd@nbd.name>
* treewide: clean up and unify PKG_VERSION for git based downloadsFelix Fietkau2016-12-2210-61/+31
| | | | | | Also use default defintions for PKG_SOURCE_SUBDIR, PKG_SOURCE Signed-off-by: Felix Fietkau <nbd@nbd.name>
* Revert mirror hash fixesFelix Fietkau2016-12-203-3/+3
| | | | | | | | | | They are based on obsolete download tarballs Revert "usign: fix mirror hash" (4f874423fd711e58aa43110918c923016615f22b) Revert "ubox: fix mirror hash" (9ee74b575305e8111fd3b1009ae183cf15e6d926) Revert "opkg: fix mirror hash" (bf6f4bfad12ded13ed9afcb886751cec24426257) Signed-off-by: Felix Fietkau <nbd@nbd.name>