Imre Kaloz
ecb68ba6b4
allow overriding the kernel partition's name
...
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 41646
2014-07-14 14:53:15 +00:00
Imre Kaloz
2ddcf5dd8a
we already have a get_magic_long() in common.sh for sysupgrade, don't break it
...
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 41628
2014-07-13 20:51:17 +00:00
John Crispin
72efa88b64
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>
SVN-Revision: 41564
2014-07-10 19:16:31 +00:00
Felix Fietkau
5aef137f9e
procd: add a shell helper function to emit a config.change event
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 41482
2014-07-02 19:18:20 +00:00
Felix Fietkau
2baf4d4fb0
procd: add shell functions to add instance data
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 41481
2014-07-02 19:18:16 +00:00
Felix Fietkau
b4059dea7f
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>
SVN-Revision: 41478
2014-07-02 19:18:05 +00:00
John Crispin
9912d02fa1
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>
SVN-Revision: 41414
2014-06-30 09:57:29 +00:00
John Crispin
9b714b6e7b
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>
SVN-Revision: 41327
2014-06-24 18:13:56 +00:00
John Crispin
bce52219fa
procd: update to latest git head
...
this fixes the upgraded linking issue on arm.
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41279
2014-06-19 14:13:45 +00:00
John Crispin
54faeadb07
procd: various improvements to nand.sh
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41278
2014-06-19 14:13:41 +00:00
John Crispin
42f450b722
procd: forgot to update the git id in the last commit
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41239
2014-06-17 17:51:35 +00:00
John Crispin
0cf34cee5e
procd: make upgarded depend on mips, the static linking on arm fails
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41238
2014-06-17 15:40:05 +00:00
John Crispin
1a3ebd51ad
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>
SVN-Revision: 41237
2014-06-17 15:40:02 +00:00
John Crispin
3dca5a158d
procd: various cleanups to /lib/upgrade/nand.sh
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41222
2014-06-16 18:55:14 +00:00
John Crispin
21eac7a7db
procd: update to latest git HEAD
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41221
2014-06-16 18:55:09 +00:00
John Crispin
91d82d7b36
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>
SVN-Revision: 41220
2014-06-16 18:55:05 +00:00
Felix Fietkau
b30b59773b
procd: update to the latest version, fixes static linking of upgraded
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 41148
2014-06-11 17:48:35 +00:00
Felix Fietkau
79bbc4fbfb
procd: allow passing multiple config files to procd_add_reload_trigger
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 41146
2014-06-11 17:05:46 +00:00
Steven Barth
12cdfef54c
procd: fix overflow in hotplug socket on certain targets
...
SVN-Revision: 41142
2014-06-11 15:34:33 +00:00
John Crispin
1e876b4191
procd: update to latest git HEAD
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41129
2014-06-11 12:59:49 +00:00
Felix Fietkau
71cda6a1e0
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>
SVN-Revision: 41039
2014-06-07 11:54:13 +00:00
John Crispin
bd179b2610
procd: service instances can now report an error of why they failed to start.
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41031
2014-06-06 09:34:30 +00:00
Felix Fietkau
e4cc5c1edf
procd: update to the latest version, fixes a crash on early boot
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 41020
2014-06-05 14:55:14 +00:00
John Crispin
e1e5f21b2f
procd: add wrapper calls for interface triggers
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41008
2014-06-05 10:56:06 +00:00
John Crispin
ad3c2701b6
procd: update to latest git head
...
adds support for ubus event based triggers
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41007
2014-06-05 10:56:02 +00:00
John Crispin
59c8b70839
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>
SVN-Revision: 41006
2014-06-05 08:19:59 +00:00
Felix Fietkau
0c383776df
procd: update, fixes a bunch of memleaks
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40856
2014-05-25 19:38:58 +00:00
Felix Fietkau
039dca04b8
procd: update to the latest version, fixes some musl compatibility issues
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40854
2014-05-25 17:51:52 +00:00
Felix Fietkau
93d8170084
procd: add explicit libubox dependency to force rebuild on ABI changes ( #16300 )
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40740
2014-05-09 00:52:49 +00:00
Felix Fietkau
84c3487e5a
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>
SVN-Revision: 39983
2014-03-21 15:54:18 +00:00
Felix Fietkau
0060005bd8
procd: update to latest version, fixes a format string bug in processing init script output ( #15169 )
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 39945
2014-03-18 12:58:15 +00:00
Felix Fietkau
a42b421c79
procd: depend on libubox directly to rebuild on ABI changes
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 39724
2014-02-23 17:32:18 +00:00
John Crispin
97ee2bc616
procd: update to latest git head
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 39613
2014-02-18 13:33:32 +00:00
John Crispin
b71eb4b5df
procd: the helper script did not export all functions properly
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 39612
2014-02-18 13:33:29 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
Jo-Philipp Wich
2a2d408024
procd: fix incorrect use of sizeof() in vsnprintf()
...
SVN-Revision: 38268
2013-10-01 14:41:07 +00:00
John Crispin
52b61d6325
procd: update to latest git head
...
this fixes the syslog problem when using eglibc on x86.
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38267
2013-09-30 20:48:51 +00:00
Luka Perkov
ef5f836207
fix various init scripts
...
Changes include:
* removing unused variables
* replacing spaces with tabs where appropriate
* more consistency with variable declarations
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 38142
2013-09-23 21:58:36 +00:00
John Crispin
f874094402
procd: convert various packages to procd style init.d scripts
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38023
2013-09-17 21:45:30 +00:00
John Crispin
4f62127dea
procd: update to latest git head
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38022
2013-09-17 21:45:24 +00:00
Felix Fietkau
392ad68960
procd: update to latest version, adds udevtrigger improvements by juhosg
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37925
2013-09-10 11:32:07 +00:00
Jo-Philipp Wich
759112327a
procd: update to git head
...
- terminates uloop after forking in service manager
- redirects stdio to /dev/null for services executed from procd
SVN-Revision: 37799
2013-08-16 09:29:37 +00:00
Jo-Philipp Wich
408f0988e9
procd: update to git head
...
- terminates uloop after forking in hotplug handler
- redirects stdio to /dev/null for processes executed from hotplug
SVN-Revision: 37792
2013-08-15 10:33:52 +00:00
John Crispin
093f211843
update ubox and procd to latest git revision
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37516
2013-07-23 12:22:40 +00:00
Jo-Philipp Wich
60c64808dc
procd: ensure the log_proto has udp default value in log.init
...
SVN-Revision: 37508
2013-07-22 16:43:17 +00:00
John Crispin
11d027380e
procd: update to latest git head
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37504
2013-07-22 15:36:28 +00:00
Jo-Philipp Wich
ec6954e64e
procd: default to udp log protocol to keep backwards compat with busybox
...
SVN-Revision: 37496
2013-07-22 11:31:29 +00:00
Gabor Juhos
adba04e53f
procd: improve early console handling
...
The malta target is broken since procd is used
as init. The initramfs image boots fine, however
the console is not working.
Improve the early console handling to fix the
problem.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 37451
2013-07-19 17:12:44 +00:00
John Crispin
ae7a156434
procd: make old button hotplug rules work until all packages are migrated
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37336
2013-07-15 11:07:53 +00:00
John Crispin
6d7e477691
procd: update to latest git revision
...
* improves logread over net code
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37313
2013-07-14 18:00:51 +00:00
John Crispin
182866ecdc
procd: update to latest git revision
...
this fixes a regression in the watchdog init code
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37259
2013-07-11 21:16:43 +00:00
John Crispin
3c306f9d07
procd: make the log port default to 514 if none is specified
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37257
2013-07-11 21:16:25 +00:00
John Crispin
585ab22c0f
procd: update to latest git version
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37250
2013-07-11 17:01:03 +00:00
John Crispin
6f1112a5e8
procd: add proto and trigger support to the /etc/init.d/log
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37249
2013-07-11 17:00:59 +00:00
John Crispin
8eb56a88a4
procd: add a small script that handles config reloads until configd is ready
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37248
2013-07-11 17:00:54 +00:00
John Crispin
67eb275f69
procd: the delete ubus call was passed the wrong field name for services
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37247
2013-07-11 17:00:49 +00:00
John Crispin
9004e560fe
procd: update to latest git revision
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37206
2013-07-08 16:35:19 +00:00
John Crispin
09f23981f4
procd: remove obseleted procd.init file
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37205
2013-07-08 16:35:10 +00:00
John Crispin
988c6209a1
procd: bump to latest git revision
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37158
2013-07-04 13:30:59 +00:00
John Crispin
6884a8b59d
procd: extend shell binding with trigger support
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37157
2013-07-04 13:30:55 +00:00
John Crispin
c4f5b5d0d5
procd: update to latest git revision
...
* fix ubus reconnect handling
* set global mask 0
* add respawn support
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37056
2013-06-28 11:21:52 +00:00
John Crispin
4ebf19b48f
packages: clean up the package folder
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37007
2013-06-21 16:54:37 +00:00