John Crispin
20940138ac
scripts: fix wrong usage of '==' operator
...
[base-files] shell-scripting: fix wrong usage of '==' operator
normally the '==' is used for invoking a regex parser and is a bashism.
all of the fixes just want to compare a string. the used busybox-ash
will silently "ignore" this mistake, but make it portable/clean at least.
this patch does not change the behavior/logic of the scripts.
Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>
SVN-Revision: 42911
2014-10-14 12:21:11 +00:00
John Crispin
f81614594f
procd: update to latest git
...
add support for starting services as !root
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 42471
2014-09-11 12:28:00 +00:00
Felix Fietkau
2dabf3a775
procd: allow adding empty strings to arrays
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 42456
2014-09-10 12:56:19 +00:00
John Crispin
c23e0ed691
procd: run the mdns register outside the sub shell container
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 42327
2014-08-29 18:36:29 +00:00
John Crispin
b0d9dcf84d
procd: update to latest git HEAD
...
this adds a interafce.update trigger and mdns service registration helpers
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 42324
2014-08-29 18:16:24 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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