Felix Fietkau
be1cdf3260
procd: update to the latest version, fixes parsing of /etc/openwrt_release
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41891 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-30 12:39:46 +00:00
Steven Barth
01c6ca4c6d
procd: work around some docker architecture quirks
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41867 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-29 06:51:35 +00:00
Felix Fietkau
1bc26661a1
procd: check output of "uci show" instead of raw config files in order to track uncommitted changes
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41865 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-29 02:12:24 +00:00
Felix Fietkau
53dcc19bf6
procd: update to the latest version, fixes hotplug firmware loading issues
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41735 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-18 14:42:18 +00:00
Imre Kaloz
44e7bc82d5
[procd]: allow overriding the kernel partition's name
...
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41646 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-14 14:53:15 +00:00
Imre Kaloz
bd652ee268
[procd]: we already have a get_magic_long() in common.sh for sysupgrade, don't break it
...
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41628 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-13 20:51:17 +00:00
John Crispin
19594fc3ed
procd: correctly identify ubifs in tar file
...
A missing path prevents the rootfs type contained in a SysupgradeNAND
tar file from being determined correctly.
This fixes it, and also corrects a minor spelling mistake.
Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41564 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-10 19:16:31 +00:00
Felix Fietkau
218ae8eb00
procd: add a shell helper function to emit a config.change event
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41482 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-02 19:18:20 +00:00
Felix Fietkau
42647b77cc
procd: add shell functions to add instance data
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41481 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-02 19:18:16 +00:00
Felix Fietkau
0df29b8831
procd: update to the latest version, adds support for dumping per-instance service data with an optional type filter
...
also fixes a crash on stopping a service with triggers after reloading it
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41478 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-02 19:18:05 +00:00
John Crispin
1a7223795f
procd: fix uci_validation
...
Regardles of the return code from validate_data _error variable will be 0 due
to 'local' command in the previous line. With this patch we are able to catch
the return code from validate_data tool.
Signed-off-by: Luka Perkov <luka@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41414 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-30 09:57:29 +00:00
John Crispin
fd4f6d5215
procd: fix nand.sh kernel_length typo
...
sysupgrade otherwise skips kernel part on devices which got
kernel in ubi due to kern_length being undefined, kernel_length
is being used instead.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41327 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 18:13:56 +00:00
John Crispin
7e4ad04438
procd: update to latest git head
...
this fixes the upgraded linking issue on arm.
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41279 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-19 14:13:45 +00:00
John Crispin
87a9dcb506
procd: various improvements to nand.sh
...
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41278 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-19 14:13:41 +00:00
John Crispin
98d34860a4
procd: forgot to update the git id in the last commit
...
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41239 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-17 17:51:35 +00:00
John Crispin
cfe127980c
procd: make upgarded depend on mips, the static linking on arm fails
...
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41238 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-17 15:40:05 +00:00
John Crispin
31f99ff64c
procd: some cleanup for SysupgradeNAND
...
Removed unused ubi file file from template as ubinized images are
passed directly and not inside the tarball.
Also removed left-over white-space.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41237 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-17 15:40:02 +00:00
John Crispin
a0be38dafa
procd: various cleanups to /lib/upgrade/nand.sh
...
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41222 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-16 18:55:14 +00:00
John Crispin
0e42bc27c7
procd: update to latest git HEAD
...
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41221 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-16 18:55:09 +00:00
John Crispin
1b895a65a4
procd: rename procd_add_network_trigger
...
i got complaints about the bad naming of the api. lets rename it while there are no users yet.
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41220 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-16 18:55:05 +00:00
Felix Fietkau
53557b1ac1
procd: update to the latest version, fixes static linking of upgraded
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41148 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-11 17:48:35 +00:00
Felix Fietkau
5a1be6890b
procd: allow passing multiple config files to procd_add_reload_trigger
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41146 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-11 17:05:46 +00:00
Steven Barth
d7029483f4
procd: fix overflow in hotplug socket on certain targets
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41142 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-11 15:34:33 +00:00
John Crispin
1d54844bf9
procd: update to latest git HEAD
...
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41129 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-11 12:59:49 +00:00
Felix Fietkau
4529f05113
procd: Fix USB cellular modems hotplug events
...
Without this patch, /etc/hotplug.d/tty/30-3g won't be called when you insert or remove a USB-serial cellular modem.
(see Ticket #14117 )
Signed-off-by: Matthew Reeve <mreeve@tenxnetworks.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41039 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-07 11:54:13 +00:00
John Crispin
16eceec6c4
procd: service instances can now report an error of why they failed to start.
...
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41031 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-06 09:34:30 +00:00
Felix Fietkau
43bed940cc
procd: update to the latest version, fixes a crash on early boot
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41020 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-05 14:55:14 +00:00
John Crispin
b8e563d2d0
procd: add wrapper calls for interface triggers
...
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41008 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-05 10:56:06 +00:00
John Crispin
120957698a
procd: update to latest git head
...
adds support for ubus event based triggers
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41007 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-05 10:56:02 +00:00
John Crispin
7024138581
procd: rename local variable in uci_validate_section
...
Allow to use "package", "type", "name", "error" and "result"
as config option names:
package some_service
config section 'foo'
option name 'bar'
option type 'unknown'
Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41006 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-05 08:19:59 +00:00
Felix Fietkau
69307004b0
procd: update, fixes a bunch of memleaks
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40856 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-05-25 19:38:58 +00:00
Felix Fietkau
c1c3114aa4
procd: update to the latest version, fixes some musl compatibility issues
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40854 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-05-25 17:51:52 +00:00
Felix Fietkau
4aa9801f75
procd: add explicit libubox dependency to force rebuild on ABI changes ( #16300 )
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40740 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-05-09 00:52:49 +00:00
Felix Fietkau
1abc9c63a2
procd: add a PROCD_DEBUG variable that will dump the ubus calls from init scripts to stderr
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39983 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-03-21 15:54:18 +00:00
Felix Fietkau
4cc6898f94
procd: update to latest version, fixes a format string bug in processing init script output ( #15169 )
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39945 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-03-18 12:58:15 +00:00
Felix Fietkau
8b72b267cc
procd: depend on libubox directly to rebuild on ABI changes
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39724 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-23 17:32:18 +00:00
John Crispin
f815a8c108
procd: update to latest git head
...
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39613 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-18 13:33:32 +00:00
John Crispin
f97a3cfbe8
procd: the helper script did not export all functions properly
...
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39612 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-18 13:33:29 +00:00
John Crispin
96f0d4bb4f
libubox: ubox: procd: ubus: update to latest git head
...
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39425 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-30 09:02:58 +00:00
John Crispin
a5996f7ab8
procd: update to latest git head
...
Fixes OpenWrt bug #14832
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39352 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-20 18:42:58 +00:00
Jo-Philipp Wich
d2908ef888
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39132 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-18 15:38:28 +00:00
John Crispin
1480a55d0a
procd: update procd, add ulimit support
...
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39023 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-09 17:38:19 +00:00
John Crispin
dba219f7c9
netifd: enable coredumps again
...
got broken due procd startup. Requires procd resource limit patch.
Signed-off-by: Ulrich Weber <uw@xyne.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39020 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-09 17:29:34 +00:00
Jo-Philipp Wich
8ad86b6a1e
procd: fix processing of datatype specification with spaces
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38935 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-28 11:26:34 +00:00
John Crispin
3b4cd0a50e
base-files: allow users to delect debug level during boot
...
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38909 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-25 08:34:55 +00:00
John Crispin
944e1ee168
procd: update procd.sh to make use of the new validate_data tool
...
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38908 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-25 08:34:47 +00:00
John Crispin
d011f5cde3
procd: fix the running hook #38868
...
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38885 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-20 19:28:51 +00:00
John Crispin
92a78d5b61
libubox: ubox: procd: move md5.{c,h} to libubox
...
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38870 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-19 20:56:11 +00:00
John Crispin
bd43a9ec43
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38868 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-19 16:33:50 +00:00
Felix Fietkau
a91d911f7d
procd: emit tty events for ttyUSB* even when they come from the usb-serial subsystem
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38862 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-19 00:03:42 +00:00