Commit Graph

379 Commits (13a095085e3e53a9e9fa4859e39bda9213a46b1b)

Author SHA1 Message Date
Imre Kaloz 20fac016e4 mvebu: add support for the Linksys boot counter
The u-boot boot counter was never reset after a successful boot,
which sometimes could make some variables become out of sync.
This patch adds support for the boot counter and enables
auto_recovery unconditionally.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
Signed-off-by: Rob Mosher <nyt-openwrt@countercultured.net>
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 46690
9 years ago
Hauke Mehrtens cae35b268c procd: fix seccomp build on some architectures
fix generating syscall-names.h

Sometimes the syscall number is not defined with a number but with an
offset to an other syscall and then make_syscall_h.sh created some
broken header file.

For example the bit/syscall.h from musl for i386 has this:

  #define __NR_timer_create     259
  #define __NR_timer_settime    (__NR_timer_create+1)

With this patch the resulting array looks like this:

 [259] = "timer_create",
 [(__NR_timer_create+1)] = "timer_settime",

This closes #20195.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 46612
9 years ago
Rafał Miłecki 26845a4715 procd: switch buttons to the new "button" hotplug handler
This allows requesting "timeout" ACTION in script by returning a
positive value.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 46580
9 years ago
Rafał Miłecki 386840aecf procd: update to the latest version, add "button" hotplug handler
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 46578
9 years ago
Jonas Gorski ec428bccad opkg: ensure image provided feeds are available after sysupgrade
Split the opkg.conf into three files, to make it easier to support custom
feeds and configs:

* /etc/opkg.conf -> base opkg configuration
* /etc/opkg/distfeeds.conf -> default Openwrt package feeds
* /etc/opkg/customfeeds.conf -> custom package feeds

Of these three, only the base opkg.conf and the customfeeds.conf is marked
as to be kept, so that the distfeeds.conf from the image is always used.

To ease migration, a script is added that moves any feeds from /etc/opkg.conf
to /etc/opkg/customfeeds.conf on first boot.

Also ensure that any keys used for verification are also kept in upgrade.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46491
9 years ago
John Crispin 29b65e853f procd: update to latest git HEAD
fixes http://patchwork.ozlabs.org/patch/497899/

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46465
9 years ago
Luka Perkov d4ff533bcc rpcd: update to the latest version
This update adds a couple of file plugin enhancements, such as base64 support
and setting mode when files are written.

Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 46384
9 years ago
John Crispin c18f603ba4 ubox: update to latest git HEAD
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46356
9 years ago
John Crispin 8503f34ce8 fstools: fstab.init fix spelling
fix a very minor typo in warning message

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>

SVN-Revision: 46273
9 years ago
John Crispin 7ab6409a89 ubus: bump to latest git HEAD
fixes a bug where gid was checked twice instead of the uid/gid combo

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46246
9 years ago
Rafał Miłecki 9206a90a74 procd: update to the latest version, fix stdout logging
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 46212
9 years ago
Felix Fietkau f58c9613f7 ubus: update to the latest version, fixes a segfault on message retry
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46199
9 years ago
John Crispin df1daa4692 ubus: update to latest git HEAD
this adds ACL support

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46040
9 years ago
Felix Fietkau d494adc396 procd: update to the latest version, fixes umask handling for creating /dev/shm
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46023
9 years ago
Felix Fietkau 2d5a364e60 procd: update to the latest version, fixes /dev/shm permissions
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46013
9 years ago
Felix Fietkau 278add2ab1 opkg: fix duplicate check_signature line for smime variant (#19863)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45999
9 years ago
Felix Fietkau ffc033b26b procd: update to the latest version, adds a few fixes
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45972
9 years ago
Felix Fietkau 16fa80a8f1 procd: correct the order of respawn params in the comments.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>

SVN-Revision: 45955
9 years ago
John Crispin 72eb909a0d opkg: Fix --force-checksum when using SHA256
Allow installing packages with mismatching SHA256 checksums via

$ opkg install --force-checksum $PACKAGE

Signed-off-by: Florian Fieber <florian@florianfieber.de>

SVN-Revision: 45904
9 years ago
Felix Fietkau 9e233fb241 mtd: add missing <endian.h> include
trx.c in mtd would not include endian.h, so on systems that do not have
this header implicitly included from the other headers (like musl), both
__BYTE_ORDER and __BIG_ENDIAN would be undefined and thus 0, leading to
it always presuming a big-endian system. this would lead to issues when
running mtd fixtrx on little-endian systems, as it would never recognize
the TRX magic as result of the broken STORE32_LE() macro.

Signed-off-by: Shiz <hi@shiz.me>
Tested-by: Shiz <hi@shiz.me>

SVN-Revision: 45896
9 years ago
John Crispin 5fe5aeaa72 procd: work around a event race
there is a conceptual design flaw in our interface events. workaround this by
disabling duplicate message supression in procd. we need to fix this properly
for the next release

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45883
9 years ago
John Crispin 2b9ac1e0af procd: add a 10 second delay to the interface triggers
this is an ugly hack that will be removed when the netifd maintainers
have time to look at the problem.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45876
9 years ago
John Crispin 157c9199b3 ca-certificates: update to version 20150426
update to version 20150426

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>

SVN-Revision: 45858
9 years ago
Jo-Philipp Wich 3c5357d6ef feeds: use common macro "FeedSourcesAppend" to populate opkg configurations
This introduces a common macro to assemble the correct url templates to
avoid code duplication and have the feed config handling in a central place.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 45799
9 years ago
Felix Fietkau 85d5ada56f fstools: update to the latest version, makes filesystem initialization state tracking more reliable (#19564)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45751
9 years ago
Felix Fietkau 8450300079 ubus: update to the latest version, switch to git.openwrt.org, fixes a lua binding memory leak
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45750
9 years ago
John Crispin 09bf72ae05 ubox: various logd cleanups
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45721
9 years ago
John Crispin 86b573fa31 procd: make the jail code also work on arm
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45719
9 years ago
Jo-Philipp Wich 62b1ce098a rpcd: unload package after uci reverts
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 45695
9 years ago
Felix Fietkau c43444aa1b usign: update to the latest version, use libubox base64 code
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45642
9 years ago
Jo-Philipp Wich 2a196a68cd procd: fix uid/gid changing for service instances
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 45611
9 years ago
John Crispin a43bcc980e Removed reference to imaginary procd_add_interface_reload in procd.sh
The last line of procd.sh has a reference to procd_add_interface_reload. procd_add_interface_reload
doesn't seem to exist. I've removed the reference of it to minimize confusion.

Signed-off-by: Eric Schultz <eschultz@prplfoundation.org>

SVN-Revision: 45487
9 years ago
Felix Fietkau 4d67af61be opkg: fix md5 related #ifdef (thx, swalker)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45447
9 years ago
John Crispin 9d982afe5e rpcd: update to latest git HEAD
adds support for reading md5 sums of files

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45442
9 years ago
John Crispin 88593747cc fstools: update to latest git HEAD
fixes issues with semi-initialized overlay partitions during firstboot

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45440
9 years ago
John Crispin cc9a392e49 opkg: drop md5 in favour of sha256
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45437
9 years ago
Jo-Philipp Wich b0b95e0dd7 fstools: reject relative mount points
To prevent future confusion around '/overlay' vs. 'overlay' simply reject
relative path specifications as mount points since such paths result in
undefined behaviour anyway.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 45404
9 years ago
John Crispin 8b5c250797 procd: fix compile error on x86_64
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45344
9 years ago
John Crispin 19b239d643 fstools: update to latest git HEAD
this fixes extroot on mvebu

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45341
9 years ago
Felix Fietkau 7b98f71f09 uci: update to the latest version, fixes a regression in handling empty/comment lines in uci batch
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45340
9 years ago
John Crispin 093c341473 procd: add helper for starting NAND sysupgrade
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45339
9 years ago
John Crispin eb099c5d6b ubox: add log_trailer_null option to uci
this allow us to use syslog tcp with \0 trailer
instead of \n trailer (logread -0 option)

Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>

SVN-Revision: 45329
9 years ago
Felix Fietkau beca028bd6 build: add integration for managing opkg package feed keys
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45286
9 years ago
Felix Fietkau dde8214d16 opkg: add patch to circumvent signature checks on the command line
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45285
9 years ago
Felix Fietkau 3efd1303d8 opkg: add patch for supporting signature checking through usign
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45284
9 years ago
Felix Fietkau a6cb86f48d usign: add new package for generating/verifying verification (similar to signify)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45283
9 years ago
Felix Fietkau f255bc4149 uci: update to the latest version, fixes savedir issues
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45254
9 years ago
Nicolas Thill fe46689f10 packages: use $(LN) macro, make symlinks relative
Signed-off-by: Nicolas Thill <nico@openwrt.org>

SVN-Revision: 45250
9 years ago
John Crispin a722ee6107 ubox: update to latest git HEAD
improve logging when using tcp

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45247
9 years ago
Felix Fietkau 91c8b109db uci: update to the latest version, fixes delta path / savedir issues
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45189
9 years ago