Commit Graph

226 Commits (51b0b1903939c6d7f4e56da0b037a731b906ca41)

Author SHA1 Message Date
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 7695f68829 mtd: fix compile error with musl
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40819 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-05-21 14:09:53 +00:00
Luka Perkov dab6984526 [package] fstools: update to the latest version
Fixes RO mounts on imx6 target.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40818 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-05-21 13:15:47 +00:00
Felix Fietkau eea1c556c9 fstools: update to the latest version, adds ubifs support and ubi/mtd fixes
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40781 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-05-19 21:58:44 +00:00
Jo-Philipp Wich 473d89cc58 opkg: introduce a --force-checksum cmdline flag to be ale to ignore mismatching md5sums
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40766 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-05-14 11:19:07 +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 362c727735 ubus: update to the latest version, adds lua binding fixes and adds support for the cli command wait_for (waits for objects to appear, with timeout)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40710 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-05-06 14:59:13 +00:00
Jo-Philipp Wich 139e79dd1b fstools: fix extroot with opkg-installed block-mount (#15550)
The /sbin/block binary now requires and additional shared library, therfore set
LD_LIBRARY_PATH accordingly when invoking it from the temporary overlay.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40526 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-04-17 17:59:47 +00:00
John Crispin 864d498153 rpcd: update to the latest version
This is required to make object "session" procedure "access" dump ACLs
when no "object" or no "function" parameters are passed.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40496 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-04-12 21:22:12 +00:00
Jo-Philipp Wich 161a63f4ef uci: fix import with not yet existing packages, preserve config permissions on commit, fix Lua detection in cmake
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40458 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-04-11 16:14:09 +00:00
John Crispin 43562719f0 fstools: update to latest git HEAD
this adds the /sbin/ubi tool that can be used for sysupgrading ubi volumes

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40415 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-04-07 15:10:07 +00:00
John Crispin a725c853e0 fstools: scripts should propagate the cmdline
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40383 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-04-05 16:34:40 +00:00
John Crispin e60bb265de fstools: update to latest git
this fixes ubifs and ubi overlay support

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40366 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-04-03 14:26:38 +00:00
John Crispin bbff25f740 firmware: create a new folder for holfing firmware blobs
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40307 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-03-30 09:15:25 +00:00
John Crispin 74e9dde7b0 mtd: improve mtd detection
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40301 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-03-30 09:14:58 +00:00
John Crispin 16e5a6fc8a ubox: fix logd (hopefully)
https://dev.openwrt.org/ticket/15357

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40295 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-03-27 13:36:01 +00:00
Felix Fietkau d7a9700570 mtd: add support for bad blocks in NAND flash
NAND flash is very likely to contain bad blocks.

Currently, mtd and therefore sysupgrade fails when it encounters a single bad block, potentially leaving an unbootable system.

This patch allows the mtd utility to skip bad blocks in NAND flash and complete sysupgrade successfully.

Patch by: Matthew Redfearn <matt.redfearn@nxp.com>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40021 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-03-26 10:50:09 +00:00
John Crispin a284ffb5a3 fs-tools: add back mount_root, jffs2reset and ffs2mark functionality
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40018 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-03-25 20:15:50 +00:00
Imre Kaloz 51ced43afd [am33x-cm3]: add the TI AM335x PM firmware package
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40016 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-03-25 14:56:35 +00:00
Felix Fietkau ae3046225c ca-certificates: install to /etc/ssl/certs/ directly instead of installing a symlink (fixes #15351)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40007 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-03-23 11:59:37 +00:00
Felix Fietkau fb81974faf ca-certificates: add system CA certificates package (based on the debian one)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39984 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-03-21 15:54:22 +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 c0631e4aa5 ubus: update to latest version, blocks unrelated uloop calls on synchronous requests
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39954 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-03-19 14:26:43 +00:00
John Crispin 07fac08fd1 ubox: update to latest git head
logread now shows the right time.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39951 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-03-18 19:22:38 +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
John Crispin 9ed8fd2348 ubox: update to latest git head
use the fd handover api of ubus to transfer log data
the uci option log_buffer_size can be used to override the default size of 16k

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39898 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-03-12 19:33:18 +00:00
John Crispin bd37e9e0ae ubus: update to latest git HEAD
add fd handover inside ubus replies

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39897 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-03-12 19:33:09 +00:00
John Crispin 2b77148377 fstools: add the new fstools package
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39895 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-03-12 19:32:51 +00:00
Felix Fietkau 1897d563e5 ubus: update to latest version, fixes lua binding issues and adds fd passing support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39726 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-23 17:32:26 +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
Felix Fietkau ab57b89aa9 ubus: declare main version as ABI version for libubus
Reorder BuildPackage calls, as libubox needs to come first for ABI
version handling to work

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39722 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-23 17:32:11 +00:00
John Crispin 3854547a4a ubox: logd did not register its config.reload trigger properly
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39616 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-18 13:33:43 +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
Felix Fietkau 3eeb6bd12e uci: update to latest version, adds preparation for validation support and blobmsg int64 support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39606 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-18 12:27:11 +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 27a8f6583e ubox: revert log buffer size changes
the fix horribly broke existing setups

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39366 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-22 15:33:16 +00:00
John Crispin 5e6bed3d03 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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39365 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-21 20:59:04 +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
John Crispin 78c3a63797 ubox: update to latest git head
adds option to set internal buffer size

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39333 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-19 19:10:09 +00:00
John Crispin 7ca1a50c8a ubox: update to latest git
- fix duplicate device wildcard
- fix elf 64bit elf parsing

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39316 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-17 21:35:32 +00:00
John Crispin 6c3188028d ubox: welcome to 2014
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39246 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-12 14:07:01 +00:00
John Crispin f081be1fe6 ubox: update to latest git - fixes error reporting
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39244 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-12 14:03:10 +00:00
Jo-Philipp Wich b7e6f36ad0 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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39224 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-12 11:52:40 +00:00
Jo-Philipp Wich c59eec1589 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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39153 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-21 13:47:46 +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
Felix Fietkau d6864eb56d opkg: do not add blank "Provides:" fields to package metadata
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39039 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-13 10:40:26 +00:00
John Crispin 482d7109ab ubox: fix logging support. the initial connect failed
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39024 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-09 18:24:30 +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 2f20e13586 ubox: fix up pidcount handling inside log.init
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39022 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-09 17:29:44 +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
Felix Fietkau fed8a06b41 uci: update to the latest version, adds a small uci_to_blob fix
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38987 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-02 13:08:17 +00:00
Jo-Philipp Wich 0e12d4c637 ubox: fix handling of uci lists, prevent shell code injection from uci values (#14548)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38938 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-28 20:47:26 +00:00
Jo-Philipp Wich 3a962b7099 Revert "ubox: the validation code has problems with the "(" char. use string for now"
This reverts commit f7c2ac3ea9b5f2dc4ef4ce4ef195de8a4ac5546b.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38937 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-28 11:33:49 +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 97bbd3cb75 ubox: the validation code has problems with the "(" char. use string for now
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38916 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-26 07:50:05 +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 451be59120 ubox: update the validate_data tool
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38907 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-25 08:34:39 +00:00
John Crispin feecbc62ae ubox: fix typo that caused log_file to not be validated properly
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38906 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-25 08:34:31 +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 5057749408 procd: add validation to the log init script
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38879 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-20 16:56:41 +00:00
John Crispin 70bc05720b mtd: add a "mtd verify" call
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38871 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-19 20:56:23 +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
John Crispin 5ff54b79ef 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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38822 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-16 20:20:30 +00:00
Felix Fietkau 9383e3c3c4 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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38807 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-14 19:38:54 +00:00
Hauke Mehrtens 0543130adb 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>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38795 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-13 18:42:45 +00:00
John Crispin b003254478 procd: remove obselete script install reference
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38790 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-13 12:15:06 +00:00
John Crispin e41c835cee procd: options with default values are not parsed properly in the ubus register code
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38788 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-13 10:57:16 +00:00
John Crispin 57b91e4f39 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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38786 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-13 10:49:25 +00:00
Felix Fietkau 8326da8cf7 procd: reduce the number of unnecessary calls to /sbin/hotplug-call for tty devices
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38705 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-10 15:06:28 +00:00
John Crispin 966c693361 procd: update to latest git head
make sure that automatic respawning is turned off during upgrade

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38695 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-08 21:53:37 +00:00
Jo-Philipp Wich f65f2f0e02 ubox: fix extroot/extoverlay mounting by label and support mounting by device name
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38680 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-07 18:06:29 +00:00
John Crispin 053c717044 ubox: update to latest git head
support for specifying swap priority from the command line

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38679 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-07 15:31:44 +00:00
John Crispin d9614c2152 ubus: update to latest git head
adds support for events in the lua binding

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38678 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-07 15:31:40 +00:00
Gabor Juhos 9b0e57fe7f 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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38654 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-05 16:31:12 +00:00
John Crispin 7d236f8e5d ubox: update to latest git HEAD
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38554 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-28 06:48:04 +00:00
John Crispin 64ffd5decf ubox: update to latest git head
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38541 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-26 12:25:11 +00:00
John Crispin 18c8dafa90 procd: update to latest git head
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38529 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-24 14:27:03 +00:00
Luka Perkov ae75e48dcf [package] 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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38410 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-15 11:32:28 +00:00
Jo-Philipp Wich b639034a1b 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.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38392 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-14 13:01:06 +00:00
Steven Barth e9ae348a48 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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38390 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-14 08:09:58 +00:00
Felix Fietkau 1b44d4878e procd: fix command handling in procd_add_instance()
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38350 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-09 11:07:23 +00:00
Steven Barth f578cfad56 opkg: add support for SHA256 verification
based on a patch by Evan Hunt <each@isc.org>
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38302 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-04 05:56:20 +00:00
Steven Barth 414c5be62b Add package signing infrastructure
Add package signing key and certificate configuration options to the
"Image configuration" submenu. If enabled, the Packages.gz list will
be signed as file Packages.sig. The passphrase for the signing key can
be sourced from a file or entered by the user. The signing certificate
is automatically added to the firmware image if opkg-smime is selected.

Signed-off-by: Evan Hunt <each@isc.org>
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38284 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-02 12:12:10 +00:00
Jo-Philipp Wich c3fb309e1b procd: fix incorrect use of sizeof() in vsnprintf()
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38268 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-01 14:41:07 +00:00
John Crispin 9ab1111f6b procd: update to latest git head
this fixes the syslog problem when using eglibc on x86.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38267 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-30 20:48:51 +00:00
Jo-Philipp Wich 47c2eb403d rpcd: fix missing option removal when merging subsequent uci set calls
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38254 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-29 11:53:25 +00:00
Jo-Philipp Wich 1a8c47b1f3 ubus: restrict unix domain socket permission to 0600 to disallow non-root connections
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38253 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-29 11:53:20 +00:00
Jo-Philipp Wich bb95a938ab ubox: support alternative spellings for modinfo and rmmod
After this change, "rmmod" and "modinfo" works even if the user gives
the file name spelling instead of the kernel internal one, so that e.g.
"rmmod nls_iso8859-1.ko" and "rmmod nls_iso8859_1" will both succeed.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38252 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-29 11:53:17 +00:00
Jo-Philipp Wich a91ab4470f uci: change uci_ptr checking order in uci_delete()
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38251 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-29 11:53:10 +00:00
Jo-Philipp Wich 96216936f6 ubox: fix kmod loading for modules with varying dashes & underscores in names (#14182, #14189)
Instead of canonicalizing module names in the internal avl tree simpyl use a
custom strcmp() variant for the avl tree key comparisation. The custom comperator
simply treats dashes and underscores the same, so "nls_iso8859-15" is equal to
"nls-iso8859-15".

This allows us to simplify the code considerably and makes manual "modprobe"
invocations more forgiving when looking up the given module name.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38248 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-28 13:12:42 +00:00
Steven Barth bbb9ced381 opkg: add build variant with signature support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38220 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-26 19:51:03 +00:00
Luka Perkov cebf051302 [package] 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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38142 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-23 21:58:36 +00:00
Gabor Juhos 9e8e17ba21 package/mtd: enable seama fixup code for ar71xx
It will be used for the WD My Net N600.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38073 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-19 22:36:40 +00:00
John Crispin d330d9fac4 procd: convert various packages to procd style init.d scripts
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38023 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-17 21:45:30 +00:00
John Crispin 021ff1b2d2 procd: update to latest git head
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38022 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-17 21:45:24 +00:00
John Crispin 179d71542d ubox: make use of modprobe
ubox now has modprobe support
build and install the tool

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38019 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-17 21:45:01 +00:00