1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-16 01:11:32 +02:00
Commit Graph

911 Commits

Author SHA1 Message Date
jow
afc4535cfc base-files: ipcalc.sh: fix broken calculations on 64bit systems
Calculate complements by using awk's xor() function with a mask of 0xffffffff
instead of relying on the compl() function which appears to produce broken
results on certain 64bit architectures.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34875 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-23 22:18:43 +00:00
nbd
c0a7004695 base-files: add basic procd integration, let procd start (and restart) ubus instead of having an ubus init script
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34866 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-22 18:56:09 +00:00
mirko
5ca25ac981 [package/base-files] hot-fix nameclash in sysupgrade: rename pivot() to supivot() in sysupgrade
Sysupgrade defines its very own pivot() function.
Prior merging boot.sh and functions.sh sysupgrade just included boot.sh,
now it includes functions.sh which defines pivot() as well, however
slightly different which causes sysupgrade to fail.

This is a hot-fix to unbreak sysupgrade, however those two pivot()
functions should actually get merged.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34815 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-21 12:10:21 +00:00
luka
f1b689a9f4 [package] base-files: we don't need /etc/functions.sh symlink anymore
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34802 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-20 15:15:30 +00:00
mirko
c8e772f18f merge /lib/functions/boot.sh and /lib/functions.sh
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34794 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-19 16:07:53 +00:00
mirko
53edda1e36 Do not overload mount-call - trying to reduce confusion
The behaviour of calling 'mount' differed depending on whether it called
the busybox-mount, the mount of util-linux, the mount defined in
/lib/functions.sh and /lib/functions/boot.sh

/etc/preinit even included /lib/functions.sh and /lib/functions/boot.sh,
both re-defining 'mount'.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34792 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-19 16:07:46 +00:00
jow
0cc78c2020 base-files: use json_is_a() in network.sh
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34733 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-17 13:07:42 +00:00
jow
a06be29d4e base-files: rework cache handling in network.sh to keep the entire parsed ifstatus, use jshn namespaces to support using it concurrently with other jshn users
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34725 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-16 20:17:18 +00:00
jow
2e65184cca base-files: various enhancements to network.sh
- support reading inactive gateways and DNS information in
	  network_get_gateway(), network_get_dnsserver() and network_get_dnssearch()
	  by passing "true" as optional last argument
	- internally cache fetched values to speed up subsequent accesses to the same
	  data, introduce network_flush_cache() to clear them
	- add some inline function documentation

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34722 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-16 18:22:02 +00:00
juhosg
ab15bfa483 base-files: add mtd_find_chardev helper
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34648 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-12 16:49:50 +00:00
mirko
feb7e4aff9 Revert "remove function find_mtd_part() from /lib/functions.sh"
Reverting commit 34641.
Function find_mtd_part() is needed by some scripts deployed
for certain targets but not including boot.sh after all.
Still, all this certainly needs some love.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34642 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-12 13:41:56 +00:00
mirko
877ab89dab remove function find_mtd_part() from /lib/functions.sh
Since all scripts using this function include /lib/functions/boot.sh -
where this function is defined as well - it can be dropped
from /lib/functions.sh. Also avoids further confusion about this
function being declared and defined in two different places.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34641 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-12 12:38:31 +00:00
cyrus
931006e552 Remove default sysctl-entry for IPv6 here (races)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34417 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-11-29 20:14:04 +00:00
juhosg
75a6204e74 base-files: add support for the morse LED trigger
Write "delay" and "message" options to their respective files,
allowing Morse code message configuration through UCI.
The delay (dit length) defaults to 150ms (about 8 words per minute,
suitable for beginners).

Signed-off-by: Petr Viktorin <encukou@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34380 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-11-25 17:20:49 +00:00
florian
41e7e722e1 [package] base-files: use a natural mount syntax
Busybox built against musl-libc will choke on these otherwise, besides that
it is more natural to use the filesystem type, then options, then name, then
mountpoint.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34308 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-11-23 20:02:02 +00:00
florian
8bbe39a23a [package] base-files: skip LEDs handled by rssileds in led init-script
Without this, /etc/init.d/led will try to set the non-existing 'rssi' trigger.
This doesn't harm as the kernel will refuse this setting, but it outputs some
ugly log-lines:
Jun 24 10:15:19 OpenWrt user.info sysinit: setting up led RSSILOW
Jun 24 10:15:19 OpenWrt user.info sysinit: sh: write error: Invalid argument
...

In order to avoid this, skip LEDs with trigger = "rssi" in /etc/init.d/led

Signed-off-by: Daniel Golle <dgolle@allnet.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33717 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-10-11 06:45:02 +00:00
kaloz
86b1704b24 it's time to break the barriers
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33666 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-10-08 13:12:37 +00:00
nbd
537aa8de44 base-files: remove obsolete entries from sysctl.conf (#12236)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33532 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-09-24 15:24:01 +00:00
florian
c19f75663a [package] base-files: release an attached loop device on umounting
Signed-off-by: Michael Heimpold <mhei@heimpold.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33477 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-09-19 15:13:44 +00:00
jow
3102084037 [package] base-files: make file compare silent in migrate-sysctl
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33449 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-09-17 18:36:51 +00:00
jow
5a2b4355e4 [package] base-files: add uci-defaults script to migrate sysctl.conf (#12196)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33448 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-09-17 17:15:56 +00:00
jow
8579664108 [package] base-files: remove route enabled check in lib/functions/network.sh after netifd bump
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33391 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-09-13 08:47:10 +00:00
juhosg
c7af93aa5a base-files: uci-defaults for rssileds
Adds capability to add uci-defaults defining RSSI LEDs

Signed-off-by: Daniel Golle <dgolle@allnet.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33164 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-08-13 14:01:37 +00:00
jow
26de6c0700 [package] base-files: provide a sysupgrade -r (--restore-backup) option as convenience wrapper for tar -C / -x(v)zf
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33147 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-08-12 13:20:27 +00:00
florian
039dd7421f [buildroot] move LIB_SUFFIX from base-files to rules.mk
Some packages are going to need fixups based on LIB_SUFFIX

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33080 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-08-10 14:15:06 +00:00
jow
a302dbce64 [package] base-files: fix option parsing of -F/--force parameter
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33075 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-08-09 18:30:47 +00:00
florian
b8b2f7b02f [package] base-files: check for ldd presence and executability (#11991)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33057 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-08-08 15:37:34 +00:00
florian
37b093a702 [package] base-files: fix detection of standalone ldd
When standalone ldd is selected in config the binary is installed in /usr/bin/ldd.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32891 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-27 15:35:00 +00:00
acinonyx
ae2e162a94 [package] base-files: Modernize hotplug2 rules (#11368)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32711 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-14 19:59:44 +00:00
jow
0a5e278435 [package] base-files: ensure that /sys is available during sysupgrade, some essential services like om-watchdog need it
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32587 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-03 15:43:43 +00:00
jow
97f0df7a84 [package] base-files: implement network_get_dnsserver() and network_get_dnssearch() in /lib/functions/network.sh
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32531 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-29 19:04:11 +00:00
jow
79cdadea60 [package] base-files: only consider enabled default routes when finding the wan iface (#11774)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32525 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-29 11:58:35 +00:00
nbd
126de14e4c base-files: enable TCP timestamps, enable sack/dsack. (patch by Dave Täht)
A year of testing in the cerowrt project shows not using timestamps
to be a very bad idea in nearly any TCP at speeds above a few Mbit.

Lastly sack/dsack help on recovery from larger amounts of packet
loss.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32513 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-27 22:32:44 +00:00
jow
40add56ce9 [package] base-files: allow wireless ifaces to be part of multiple networks
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32503 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-26 15:25:33 +00:00
nbd
01f5ff58f7 toolchain: move eglibc-files from base-files to toolchain, it is packaged as part of the libc package
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32467 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-20 13:45:01 +00:00
jow
f6a09e69e9 [package] base-files: implement network_get_gateway(), network_get_gateway6(), network_find_wan() and network_find_wan6() in /lib/functions/network.sh
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32397 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-17 11:50:50 +00:00
jow
41f27dafe5 [package] base-files: enable shell tracing in initscripts when INIT_TRACE is set
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32340 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-13 17:10:41 +00:00
nbd
4a84d63d35 base-files: override Build/Compile/Default instead of Build/Compile (fixes #11667)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32339 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-13 16:25:29 +00:00
nbd
026e567afc base-files: move all toolchain packages to a separate package directory 'toolchain'
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32169 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-10 20:27:30 +00:00
jow
ab865f7094 [package] base-files: implement network_defer_device() and network_ready_device() wrappers for upcoming netifd iface deferring support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32106 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-07 14:55:26 +00:00
jow
132717c891 [package] base-files: add permission exceptions, do not clobber shadow permissions - based on patch by Mark Mentovai <mark@moxienet.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32073 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-05 18:02:00 +00:00
jow
9f591dd66a [package] base-files: ship a static initial shadow db instead of creating it from passwd with sed, this fixes registering of users at compile time
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32064 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-05 17:48:41 +00:00
jow
52deeb5d9c [package] base-files: make user_add() populate the shadow db as well
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32063 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-05 17:40:32 +00:00
jow
aa44be4505 [package] /etc/functions.sh => /lib/functions.sh
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32062 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-05 16:04:23 +00:00
juhosg
5e8d1213bc base-files: add LED specific functions to /lib/functions/uci-defaults
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31991 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-29 16:39:16 +00:00
nbd
232df3c46d base-files: remove base-files-network, netifd is the only supported option now
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31980 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-29 12:59:03 +00:00
jow
523bb87b7e [package] base-files: add network_is_up()
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31978 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-29 02:03:25 +00:00
jow
29377555bf [package] base-files: let network_get_device() return the l3 interface, introduce network_get_physdev() to obtain the underlying iface (if applicable)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31960 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-29 00:20:16 +00:00
jow
7de192f60d [package] base-files: add network_get_device() to network.sh
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31937 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-28 03:24:56 +00:00
jow
41d413b29c [package] base-files: introduce /lib/functions/network.sh
This file will contain common procedures to deal with network interfaces.
Initially provides network_get_ipaddr(), network_get_ipaddr6(),
network_get_subnet() and network_get_subnet6() to determine the
primary IP addresses or subnets of a given logical interface.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31935 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-28 03:15:02 +00:00