Commit Graph

226 Commits (51b0b1903939c6d7f4e56da0b037a731b906ca41)

Author SHA1 Message Date
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
Jo-Philipp Wich a669fe7552 rpcd: update to git head
- recalculate session ACLs on reload
	- support negative access group expressions in /etc/config/rpcd
	- prevent destryoing the default session
	- use "ubus_rpc_session" attribute as session identifier to enforce JSON-RPC proxy security

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37961 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-13 13:24:32 +00:00
Jo-Philipp Wich e586a11e8f rpcd: update to git head
- introduces persistent null session to allow access to procedures without login
	- implements session.login procedure to support user logins via json-rpc

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37941 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-11 12:13:33 +00:00
Felix Fietkau 875cc83b47 procd: update to latest version, adds udevtrigger improvements by juhosg
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37925 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-10 11:32:07 +00:00
Jo-Philipp Wich 6ad5bd6778 rpcd: update to git head
- adds support for service triggering on config commit
	- adds uci transaction support
	- adds daemon reload support without loosing session data
	- exports headers for use by external plugins
	- drops LuCI2 in favor to an out of tree plugin

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37921 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-09 14:35:15 +00:00
Jo-Philipp Wich 92f58fd13c Add rpcd - an extensible backend server for ubus-over-json-rpc operations, session and acl management.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37877 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-02 15:36:51 +00:00
Jo-Philipp Wich 9c35431c00 ubox: update to git head
- support mounting swap files from /etc/config/fstab
	- support mounting swap partitions by label

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37801 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-08-16 13:14:21 +00:00
Jo-Philipp Wich 2aacc38a54 ubox: update to git head
- adds support for generic mount options

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37800 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-08-16 11:18:39 +00:00
Jo-Philipp Wich 0730f55205 procd: update to git head
- terminates uloop after forking in service manager
	- redirects stdio to /dev/null for services executed from procd

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37799 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-08-16 09:29:37 +00:00
Jo-Philipp Wich a966ca7ac8 procd: update to git head
- terminates uloop after forking in hotplug handler
	- redirects stdio to /dev/null for processes executed from hotplug

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37792 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-08-15 10:33:52 +00:00
Felix Fietkau 6992373daf ubus: update to latest version, fixes a bug in reconnect after ubusd dies
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37740 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-08-08 20:45:09 +00:00
Felix Fietkau 662f4981cb ubus: fix typo
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37701 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-08-05 10:08:04 +00:00
Felix Fietkau 7b75ea7f9f ubus: change section/category to base, libs
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37700 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-08-05 10:07:33 +00:00
Felix Fietkau 4a7d09d000 ubus: update to latest version
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37671 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-08-04 08:55:28 +00:00
Jo-Philipp Wich a0afb630d4 ubox: update to git head
- fixes extroot tag file corruption with long uuids

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37623 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-31 10:44:50 +00:00
Jo-Philipp Wich 9224a7933f ubox: update to git head
- discard vfat labels with only spaces
	- support using swap files
	- support extroot when required kmods and block-mount are installed on jffs2

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37551 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-26 09:09:05 +00:00
Jo-Philipp Wich 59e96aafb3 ubox: update to git head
- use dynamically sized buffer, fixes label extraction on vfat partitions with huge cluster size
	- strip trailing spaces from vfat labels, aligns behaviour with "blkid"

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37529 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-24 18:24:57 +00:00
Jo-Philipp Wich 245c6938fe ubox: update to git head
- fixes vfat partition detection on big endian systems

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37522 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-24 10:08:58 +00:00
John Crispin 6cb84e9ebf update ubox and procd to latest git revision
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37516 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-23 12:22:40 +00:00
Jo-Philipp Wich f69cb37291 procd: ensure the log_proto has udp default value in log.init
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37508 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-22 16:43:17 +00:00
John Crispin d6e3e9ba4d procd: update to latest git head
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37504 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-22 15:36:28 +00:00
John Crispin 9bc068be75 ubox: fix stack overflow in squashfs uuid code
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37503 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-22 15:36:16 +00:00
Jo-Philipp Wich bd2cbce22c procd: default to udp log protocol to keep backwards compat with busybox
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37496 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-22 11:31:29 +00:00
Gabor Juhos b3cc355d2d 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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37451 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-19 17:12:44 +00:00
Jo-Philipp Wich a5114b0dad ubox: update to git head, fixes multiple null pointer dereferences and adds support for mounting lvm and raid devices
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37444 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-19 14:50:39 +00:00
John Crispin fa9a172e62 procd: make old button hotplug rules work until all packages are migrated
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37336 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-15 11:07:53 +00:00
Felix Fietkau dfe23e06f6 ubox: fix compile error (#13877)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37330 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-15 08:17:33 +00:00
John Crispin 1fbeb49e06 procd: update to latest git revision
* improves logread over net code

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37313 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-14 18:00:51 +00:00
John Crispin f449cc2b22 ubox: update to latest git revison
this fixes a stack corruption in kmodloader. lsmod should be fixed now

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37312 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-14 18:00:43 +00:00
Felix Fietkau 4ea1473546 kernel/base-files: clean up old code related to refreshing mtd partitions, it is no longer used anywhere
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37282 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-14 12:56:58 +00:00
John Crispin 22369289cd procd: update to latest git revision
this fixes a regression in the watchdog init code

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37259 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-11 21:16:43 +00:00
John Crispin 7faed562d8 procd: make the log port default to 514 if none is specified
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37257 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-11 21:16:25 +00:00
John Crispin b4e370a224 procd: update to latest git version
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37250 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-11 17:01:03 +00:00
John Crispin c7b8d25ee0 procd: add proto and trigger support to the /etc/init.d/log
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37249 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-11 17:00:59 +00:00
John Crispin ee1b454b4b procd: add a small script that handles config reloads until configd is ready
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37248 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-11 17:00:54 +00:00
John Crispin d20dabe8e8 procd: the delete ubus call was passed the wrong field name for services
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37247 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-11 17:00:49 +00:00
John Crispin 2594841690 ubox: upgrade to latest version
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37246 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-11 17:00:45 +00:00
Luka Perkov 9865d93281 [package] ubox: remove empty menu from block-mount
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37221 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-09 23:17:33 +00:00
John Crispin f3065bb0b3 procd: update to latest git revision
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37206 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-08 16:35:19 +00:00
John Crispin f35399aae2 procd: remove obseleted procd.init file
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37205 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-08 16:35:10 +00:00
John Crispin 3f60f76184 ubox: add a uci-default script for fstab generation
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37199 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-08 09:01:42 +00:00
John Crispin c9098b05bc procd: bump to latest git revision
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37158 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-04 13:30:59 +00:00
John Crispin c4d63916fa procd: extend shell binding with trigger support
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37157 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-04 13:30:55 +00:00
John Crispin 2c43cc55ea ubox: dont install lsbloader and symlink lsmod
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37156 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-04 13:30:41 +00:00
John Crispin 051b5a6dcf ubox: add e2fsck support
Signed-off-by: Peter Wagner <tripolar@gmx.at>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37127 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-02 09:35:08 +00:00
Mirko Vogt 2640d86b61 [package/ubox] depend on libubox
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37092 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-06-29 20:59:10 +00:00
John Crispin a0789ea558 ubox: add support for delay_root option
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37088 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-06-29 16:51:09 +00:00
John Crispin eaf4cb4c6d ubox: update to latest git revision
fixes a endianess bug inside the uuid code

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37077 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-06-28 14:43:34 +00:00
Felix Fietkau 331a132006 ubus: fix ubus lua binding duplication
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37074 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-06-28 11:27:24 +00:00
John Crispin 01bfa22fff ubox: update to latest git revision
* add pivot root support
* add back a /etc/init.d/fstab
* add "block mount/umount" support
* add anonymous swap/mount support
* add auto swap/mount support
* fix superflous error when inserting modules
* add back jffs2reset/jffs2mark

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37057 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-06-28 11:22:05 +00:00
John Crispin 908dd9c52f 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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37056 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-06-28 11:21:52 +00:00
Steven Barth 23973954c9 ubus: remove unused init-script
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37026 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-06-24 12:38:30 +00:00
John Crispin f1b4824c86 packages: clean up the package folder
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37007 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-06-21 16:54:37 +00:00
John Crispin 6501c4d0da util-linux: move package to package/system/utils
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36986 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-06-21 16:52:52 +00:00
John Crispin 037242e6e4 modules: make all led and button modules used during boot priority 1
This makes sure the modules are symlinked in /etc/modules-boot.d/

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36892 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-06-10 08:24:25 +00:00
Felix Fietkau ee9294b2a9 usbmode: fix hotplug script name
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36813 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-05-31 15:42:23 +00:00
Felix Fietkau 4ca1241cb7 replace usb-modeswitch with a rewrite that should be more reliable
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36812 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-05-31 15:41:17 +00:00
Jonas Gorski 9f06c0905c brcm2708: make it boot on revision 2 raspberry pis
* update the bootcode.bin to the newest version
    - gpu/cpu mem split is now configured through config.txt, so no need
      to create more than one sd card image (just edit the config.txt)
    - bootcode.bin now supports the never revision 2 raspberry pis

  * add a commented prepopulated config.txt for easier config changes
    Taken from <https://github.com/Evilpaul/RPi-config>

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36668 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-05-20 12:07:03 +00:00
Jonas Gorski 01dad0de25 brcm2708-gpu-fw: download zipped sources and switch to Hexxeh's git
* Use the gzipped download feature from github to get a tarball with a
  stable hash.
* Use Liam McLoughlin's git which has a subset of the original git's
  contents, dropping all the precompiled modules and kernels.

Reduces the download size from ~1.27 GiB to ~25 MiB.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36667 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-05-20 12:07:00 +00:00
Felix Fietkau ab8468d344 build: consistently use 'depends on' instead of 'depends'
make the syntax more compatible with kernel menuconfig

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36351 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-04-17 15:36:41 +00:00
Gabor Juhos 2bab106d0b package/om-watchdog: add OpenMesh MR600v2 support
Signed-off-by: Marek Lindner <marek@open-mesh.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35431 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-01 15:50:49 +00:00
Felix Fietkau 82bf7a97b1 usb-modeswitch: split out usb-modeswitch-data again
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35381 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-29 12:27:17 +00:00
Felix Fietkau a10272bb24 usb-modeswitch: add from /packages, merge usb-modeswitch-data, use libusb-compat, add myself as maintainer
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35379 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-29 12:02:10 +00:00
Felix Fietkau a0636310f8 move a few packages to system/utils
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35375 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-29 10:48:46 +00:00
Felix Fietkau eeb60d018a usbutils: add from /packages, clean up, add myself as maintainer
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35374 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-29 10:48:41 +00:00
Hauke Mehrtens 2da6033a24 kernel: remove __devinit, __devexit and __devexit_p for kernel 3.8
These attributes where removed with kernel 3.8 and are now causing compile errors.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35335 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-27 21:17:38 +00:00
Felix Fietkau d774dfa969 add kmod-fs-configfs to replace kernel bloat added by selecting kmod-mmc-over-gpio
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34998 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-03 18:04:04 +00:00
Hauke Mehrtens 880dc8381a brcm47xx: add a new version of the nvram rewrite patch
This is the version like it was send for mainline inclusion.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34988 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-03 01:53:30 +00:00
Hauke Mehrtens b3759e07e0 rtc-rv5c386a: fix compilation for kernel >= 3.4
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34938 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-30 15:32:53 +00:00
John Crispin d417c0b4fe [gpio-button-hotplug] add OF binding
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34834 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-21 20:03:49 +00:00
Felix Fietkau 68e9783897 sierra-directip: delete, replaced by upstream drivers
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34738 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-17 15:11:43 +00:00
John Crispin 8b01a37718 [lantiq] move voice packages
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34695 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-15 02:00:45 +00:00
John Crispin 2218caeed3 [lantiq] move ltq-adsl
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34693 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-15 02:00:33 +00:00
Florian Fainelli 4592bacb84 [package] ar7-atm: make it depend on the generic AR7 platform
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34205 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-11-16 13:00:41 +00:00
John Crispin b6b9f3d883 [lantiq] unbreak ltq-dsl-fw
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34098 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-11-06 07:41:44 +00:00
John Crispin a3453d5c5d [lantiq] prepare dsl driver for 3.6 and split fw into a seperate package
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34096 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-11-06 07:38:18 +00:00
John Crispin 16ed01db05 [kernel] move lots of kernel related packages to the new system/ folder
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33830 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-10-17 22:45:58 +00:00