Commit graph

141 commits

Author SHA1 Message Date
John Crispin
5dcb4cc7d1 libubox: ubox: procd: ubus: update to latest git head
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39425
2014-01-30 09:02:58 +00:00
John Crispin
eceea6d6e1 ubox: revert log buffer size changes
the fix horribly broke existing setups

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

SVN-Revision: 39366
2014-01-22 15:33:16 +00:00
John Crispin
9dc6030316 ubox: update to latest git head
make sure log buffer size is not bigger than the ubus message size

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

SVN-Revision: 39365
2014-01-21 20:59:04 +00:00
John Crispin
58dc9f593b procd: update to latest git head
Fixes OpenWrt bug #14832

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

SVN-Revision: 39352
2014-01-20 18:42:58 +00:00
John Crispin
1de0eac947 ubox: update to latest git head
adds option to set internal buffer size

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

SVN-Revision: 39333
2014-01-19 19:10:09 +00:00
John Crispin
cd90b6242c ubox: update to latest git
- fix duplicate device wildcard
- fix elf 64bit elf parsing

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

SVN-Revision: 39316
2014-01-17 21:35:32 +00:00
John Crispin
c990d04026 ubox: welcome to 2014
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39246
2014-01-12 14:07:01 +00:00
John Crispin
09a06d937e ubox: update to latest git - fixes error reporting Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 39244
2014-01-12 14:03:10 +00:00
Jo-Philipp Wich
f126298a7c rpcd: build, uci and session api fixes
- fix CMakeFile to support rpcd out of tree builds
	- fix a possible file descriptor leak in the session deserialization code
	- add uci.state call which is equivalent to uci -P /var/state get ...
	- make uci.changes "config" argument optional to allow listing all deltas in one go
	- fix inverted check in uci.commit and uci.revert, resulting in eroorneous permission denied responses
	- only trigger config change events if libuci was able to parse the config
	- rename misleading "commit" argument of uci.apply to the more appropriate name "rollback"

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

SVN-Revision: 39224
2014-01-12 11:52:40 +00:00
Jo-Philipp Wich
df57b8dcb6 opkg: switch to git repository (#14655)
Upstream development now takes place in a git repository which was clone
from the old svn repository. Switch the source location to the git tree
using the commit that corresponds to the old svn r618 revision.

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

SVN-Revision: 39153
2013-12-21 13:47:46 +00:00
Jo-Philipp Wich
de5d9827ef procd: fix service file tracking
The instance_config_move() function in the procd instance managing code is
missing a blobmsg_list_move() call to update the tracked file items with the
newly calculated checksums in case of a file change.

Without that change, services are always reloaded after the first change to
a tracked file regardless of whether there are any subsequent changes or not.

Add a missing instance of blobmsg_list_free() as well.

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

SVN-Revision: 39132
2013-12-18 15:38:28 +00:00
Felix Fietkau
594442a37e opkg: do not add blank "Provides:" fields to package metadata
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39039
2013-12-13 10:40:26 +00:00
John Crispin
67e71176cb ubox: fix logging support. the initial connect failed
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39024
2013-12-09 18:24:30 +00:00
John Crispin
dda5dfb765 procd: update procd, add ulimit support
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39023
2013-12-09 17:38:19 +00:00
John Crispin
e231f82cc0 ubox: fix up pidcount handling inside log.init
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39022
2013-12-09 17:29:44 +00:00
John Crispin
31a2912cd9 netifd: enable coredumps again
got broken due procd startup. Requires procd resource limit patch.

Signed-off-by: Ulrich Weber <uw@xyne.com>

SVN-Revision: 39020
2013-12-09 17:29:34 +00:00
Felix Fietkau
c9902e141e uci: update to the latest version, adds a small uci_to_blob fix
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 38987
2013-12-02 13:08:17 +00:00
Jo-Philipp Wich
1029d341c5 ubox: fix handling of uci lists, prevent shell code injection from uci values (#14548)
SVN-Revision: 38938
2013-11-28 20:47:26 +00:00
Jo-Philipp Wich
cdbff3641b Revert "ubox: the validation code has problems with the "(" char. use string for now"
This reverts commit f7c2ac3ea9b5f2dc4ef4ce4ef195de8a4ac5546b.

SVN-Revision: 38937
2013-11-28 11:33:49 +00:00
Jo-Philipp Wich
387761e2fc procd: fix processing of datatype specification with spaces
SVN-Revision: 38935
2013-11-28 11:26:34 +00:00
John Crispin
fc3c72aba6 ubox: the validation code has problems with the "(" char. use string for now
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38916
2013-11-26 07:50:05 +00:00
John Crispin
93e9a71538 base-files: allow users to delect debug level during boot
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38909
2013-11-25 08:34:55 +00:00
John Crispin
91de2648e9 procd: update procd.sh to make use of the new validate_data tool
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38908
2013-11-25 08:34:47 +00:00
John Crispin
acec292e32 ubox: update the validate_data tool
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38907
2013-11-25 08:34:39 +00:00
John Crispin
637440c415 ubox: fix typo that caused log_file to not be validated properly
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38906
2013-11-25 08:34:31 +00:00
John Crispin
3044b185d1 procd: fix the running hook #38868
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38885
2013-11-20 19:28:51 +00:00
John Crispin
1b3a423ad5 procd: add validation to the log init script
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38879
2013-11-20 16:56:41 +00:00
John Crispin
ee41b41a30 mtd: add a "mtd verify" call
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38871
2013-11-19 20:56:23 +00:00
John Crispin
fcea2ab05a libubox: ubox: procd: move md5.{c,h} to libubox
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38870
2013-11-19 20:56:11 +00:00
John Crispin
460bf6b0d7 procd: update to latest git head
* fix up the order of respawn parameters for ubus
* add a event broadcast function
* add debug level handover between preinit and main process
* make the service running trigger be queued directly after the service was startetd
* Allow process respawning forever

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

SVN-Revision: 38868
2013-11-19 16:33:50 +00:00
Felix Fietkau
c84a43cf40 procd: emit tty events for ttyUSB* even when they come from the usb-serial subsystem
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 38862
2013-11-19 00:03:42 +00:00
John Crispin
5fbfffe7f4 procd: ubox: update to latest git head
move log service from procd to ubox
some debloating on procd
the preinit part of procd is now also a seperate binary

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

SVN-Revision: 38822
2013-11-16 20:20:30 +00:00
Felix Fietkau
ff17114ba1 ar71xx: Unifi AP Pro sysupgrade patch
The current implementation of mtd will not append the backup
file created by sysupgrade to the correct partition, as mtd will append
the data to first jffs2 partition it finds. As the kernel is also
stored on a jffs2 partition (which resides before the overlay
partition), the data will be appended to this partition.

To fix this problem, a new option

-s <number>             skip the first n bytes when appending data to the jffs2 partiton, defaults to "0"

is added to mtd.

Signed-off-by: Peter Wagner <tripolar@gmx.at>

SVN-Revision: 38807
2013-11-14 19:38:54 +00:00
Hauke Mehrtens
0ade818cb7 zram-swap: fix dependencies
swapon/swapoff are no longer provided by swap-utils; they are provided
by block-mount instead.

Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>

SVN-Revision: 38795
2013-11-13 18:42:45 +00:00
John Crispin
a8163bfd16 procd: remove obselete script install reference Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38790
2013-11-13 12:15:06 +00:00
John Crispin
50db95e2f0 procd: options with default values are not parsed properly in the ubus register code
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38788
2013-11-13 10:57:16 +00:00
John Crispin
130d7de07f procd: update to latest git head
this includes the first wip version of the uci validation backend

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

SVN-Revision: 38786
2013-11-13 10:49:25 +00:00
Felix Fietkau
f099defc00 procd: reduce the number of unnecessary calls to /sbin/hotplug-call for tty devices
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 38705
2013-11-10 15:06:28 +00:00
John Crispin
e75584e289 procd: update to latest git head
make sure that automatic respawning is turned off during upgrade

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

SVN-Revision: 38695
2013-11-08 21:53:37 +00:00
Jo-Philipp Wich
5975c119e3 ubox: fix extroot/extoverlay mounting by label and support mounting by device name
SVN-Revision: 38680
2013-11-07 18:06:29 +00:00
John Crispin
9a000667e6 ubox: update to latest git head
support for specifying swap priority from the command line

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

SVN-Revision: 38679
2013-11-07 15:31:44 +00:00
John Crispin
f69788445c ubus: update to latest git head
adds support for events in the lua binding

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

SVN-Revision: 38678
2013-11-07 15:31:40 +00:00
Gabor Juhos
2d31dc039a package/ubox: fix jffs2 handling on MTD devices emulated by gluebi
The jffs2_ready() function in mount_root.c checks
the presence of various JFFS2 markers at the start
of a given MTD device. The function works on NOR
flashes because JFFS2 puts 'cleanmarker' nodes at
the start of freshly erased blocks.

However if jffs2 is used on a MTD device emulated
by the gluebi layer, the 'cleanmarker' nodes are
not present and the jffs2_ready() function fails.

Update the code to handle jffs2 correctly even on
MTD devices emulated by the gluebi layer.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38654
2013-11-05 16:31:12 +00:00
John Crispin
7f1463623f ubox: update to latest git HEAD
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38554
2013-10-28 06:48:04 +00:00
John Crispin
964c7e696b ubox: update to latest git head
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38541
2013-10-26 12:25:11 +00:00
John Crispin
e37b364ea3 procd: update to latest git head
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38529
2013-10-24 14:27:03 +00:00
Luka Perkov
9eecccf652 uci: upgrade to latest git version
Fixes issues with UBIFS file system when due to unclean shutdown files would
end up with size 0. Furthermore, few style fixes are included too.

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

SVN-Revision: 38410
2013-10-15 11:32:28 +00:00
Jo-Philipp Wich
8833e789cc ubox: fix extroot after kmodloader changes
The kmodloader executable disregarded the global directory prefix in
scan_module_folder() leading to a broken extroot for non-builtin modules.

Update to current git head to fix the prefix handling again.

SVN-Revision: 38392
2013-10-14 13:01:06 +00:00
Steven Barth
cde419ebfc opkg: ignore empty fields in package lists
This is to work around issues with package list generators creating
empty fields in some environments.

Based on a patch by Paul Selkrik <pselkrik@isc.org>
Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 38390
2013-10-14 08:09:58 +00:00
Felix Fietkau
d1794a7536 procd: fix command handling in procd_add_instance()
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 38350
2013-10-09 11:07:23 +00:00