Commit Graph

23964 Commits (518908b8492da96f6c1bf081dc3aea2f702fcc78)

Author SHA1 Message Date
Jo-Philipp Wich cfe8557f62 package/dnsmasq: allow /etc/config/dhcp to specify --address arguments
Add a config list to the 'config dnsmasq' section to specify fixed DNS
addresses.

For example:

  config dnsmasq:
	[snip]
	list address '/example.com/192.168.0.1'

will result in the argument '-A /example.com/192.168.0.1' to the dnsmasq
options. This configures dnsmasq to return the specified IP for any
queries to '*.example.com' names.

Useful for overriding lookups to a range of DNS names.

[jow: "append args" -> "xappend", "-A" -> "--address"]

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32624 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-05 17:54:14 +00:00
Jo-Philipp Wich 2660f6d8df Add local TTL option to dnsmasq
-T, --local-ttl=<time>
    When replying with information from /etc/hosts or the DHCP leases
file dnsmasq by default sets the time-to-live field to zero, meaning
that the requestor should not itself cache the information. This is
the correct thing to do in almost all situations. This option allows a
time-to-live (in seconds) to be given for these replies. This will
reduce the load on the server at the expense of clients using stale
data under some circumstances.

[jow: change -T to --local--ttl to conform with the other options]

Signed-off-by: Andrew Byrne <openwrt@andy.id.au>

openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32623 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-05 17:46:32 +00:00
Jo-Philipp Wich d17d4680f0 dropbear: set DEFAULT_PATH for non-interactive logins
Set PATH in non-interactive logins to include /sbin paths,
so to be consistent with what is currently set in /etc/profile
for interactive shells.

[jow: reapply with current patch level, fix inner patch, refresh]

Signed-off-by: Gui Iribarren <gui@altermundi.net>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32620 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-05 16:44:05 +00:00
Jo-Philipp Wich ee822e2502 Revert "dropbear: set DEFAULT_PATH for non-interactive logins"
This reverts commit 9927e7918211a22ba5871cbccdcb3764d3872f91.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32619 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-05 16:34:52 +00:00
Jo-Philipp Wich be10df9622 dropbear: set DEFAULT_PATH for non-interactive logins
Set PATH in non-interactive logins to include /sbin paths,
so to be consistent with what is currently set in /etc/profile
for interactive shells.

Signed-off-by: Gui Iribarren <gui@altermundi.net>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32618 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-05 16:33:07 +00:00
Gabor Juhos b45a6d878e ar71xx: set firmware version for the TL-WR2543N
This ensures that the resulting firmware can
be flashed from the latest (v3.13.17) offical
firmware.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32617 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-05 16:25:31 +00:00
Gabor Juhos 5ed280cd01 firmware-utils/mktplinkfw: allow to specify firmware version
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32616 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-05 16:25:29 +00:00
Gabor Juhos cdd38c0a64 ar71xx: make 2.4GHz wlan LED work on the WR2543N
Because ath9k does not supports separate LEDs for
different bands yet, the 2.4GHz LED will show the
activity, even if the 5GHz band is selected.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32615 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-05 16:25:26 +00:00
Jo-Philipp Wich dfedcc2bed [package] hostapd: change wpa_supplicant.sh to pass 64 byte hex psk unquoted and remove the undocumented usepasspharse option, this makes it match the logic of the hostapd setup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32614 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-05 12:25:29 +00:00
Gabor Juhos a9e60e6959 ar71xx: OM2P sysupgrade support
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32613 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-05 08:26:57 +00:00
Gabor Juhos 78a3e84903 uboot-envtools: OM2P partition information
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32612 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-05 08:26:55 +00:00
Gabor Juhos bb0fdf5209 ar71xx: add support for the OpenMesh OM2P-LC board
Patch-by: Marek Linder <marek@open-mesh.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32611 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-05 08:26:53 +00:00
Gabor Juhos 42ccb52ed3 package/om-watchdog: add om2p-lc support
Patch-by: Marek Linder <marek@open-mesh.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32610 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-05 08:26:52 +00:00
Gabor Juhos 6bd692c4d6 ar71xx: add profile and build image for the Atheros AP136 reference board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32609 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-05 08:26:51 +00:00
Gabor Juhos 085697d0bd ar71xx: AP136 user-space support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32608 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-05 08:26:50 +00:00
Gabor Juhos c713180a79 ar71xx: add initial support for the Qualcomm Atheros AP136 board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32607 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-05 08:26:48 +00:00
Gabor Juhos 85fc3d402c ar71xx: add initial support for the QCA955X SoCs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32606 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-05 08:26:47 +00:00
Gabor Juhos d33dfd12ab ar71xx: refactor PCI code to allow registering multiple PCI controllers
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32605 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-05 08:26:45 +00:00
Gabor Juhos 4ecbabb00b generic: ar8216: start aneg on each PHY of the AR8327
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32604 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-05 08:26:39 +00:00
Florian Fainelli 59677232f8 [mcs814x] add missing interrupts properties to some device nodes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32603 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-04 19:37:11 +00:00
Jo-Philipp Wich ee00fbb09b mtd - remove partition table assumption when writing fis table
When mtd alters the fis partition table it assumes that the first partition
table entry also is the first logical parition table entry. For instance our
table could look like this (irrelevant partitions put aside):
 * vmlinux.bin.l7 0xA8710000
 * rootfs         0xA8030000
Here mtd would assume vmlinux.bin.l7 being the first partition and use its
address to calculate the size and offset which ultimately leads to a broken
partition table.
This patch alters the behavior by checking what partition has the smaller
address to do the calculations based on that address.

Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32601 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-04 11:56:25 +00:00
Jo-Philipp Wich a39f21d5b0 mtd - add partition offset parameter
The offset parameter can be used to write the data at the offset
instead of writing it to the beginning of the partition.

Signed-off-by: Marek Linder <lindner_marek@yahoo.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32600 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-04 11:37:53 +00:00
Felix Fietkau e476f06414 ar71xx: update the EW Dorin MTD layout, increase kernel partition size (requested by EW)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32599 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-04 10:55:56 +00:00
Travis Kemen 9994990621 mac80211: make channel bandwidth setting generic
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32596 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-04 00:25:46 +00:00
Travis Kemen 8dfadf3585 commit patch from https://lists.ath5k.org/pipermail/ath5k-devel/2011-November/005043.html, fixed up for newer ath5k and added in more radios.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32595 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-04 00:09:18 +00:00
Jonas Gorski 99927f8bfa bcm63xx: bcm63xx-spi does not depend on spi-bitbang
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32594 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-03 21:42:17 +00:00
Jonas Gorski fab5332cbd bcm63xx: 96348A-122 improvements (Comtrend 5365)
1) Improve WLAN button.
2) Add 96348A-122 image.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32593 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-03 21:42:15 +00:00
Jonas Gorski 51344d2479 bcm63xx: fix second caldata address calculation
thanks Noltari for spotting this.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32592 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-03 21:42:12 +00:00
Jonas Gorski 297078e82c bcm63xx: update patches to latest upstream versions
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32591 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-03 21:42:07 +00:00
Jonas Gorski e6d44db12b kernel: generic: spi: allow empty (un)prepare transfer
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32590 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-03 21:42:03 +00:00
Felix Fietkau dddd90c4c3 ath9k: add a patch to make the hw queue length configurable via debugfs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32589 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-03 21:00:47 +00:00
Gabor Juhos f410ca3e6d mac80211: add support for AR9550
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32588 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-03 18:05:04 +00:00
Jo-Philipp Wich 1f88d93e7e [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
Gabor Juhos a2954f12fb ar71xx: improve MDIO busy wait code
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32586 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-03 15:24:02 +00:00
Gabor Juhos 7e8616d85a ar71xx: remove the built-in MTD map of the ALL0258N
Pass the mtd_layout via the kernel command line instead.
Also increase the kernel partition size to 1024k, so current kernel can fit in.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32585 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-03 15:24:01 +00:00
Felix Fietkau 166ea494f1 toolchain: sync eglibc headers/build split with uclibc changes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32584 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-03 14:23:32 +00:00
Felix Fietkau c2922b1b10 toolchain: fix libc headers dependency on kernel headers + minimal gcc
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32582 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-03 10:43:59 +00:00
Florian Fainelli 176f801ce4 [brcm63xx] refresh patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32581 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-03 09:45:46 +00:00
Hauke Mehrtens 540c45aaa3 kernel: ssb/bcma: update to version from wireless-testing tag master-2012-07-02
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32580 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-02 23:12:58 +00:00
Jo-Philipp Wich 56c77e6d50 [package] 6to4: fix ifname resolving for adv_interface option (#11796)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32576 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-02 12:14:50 +00:00
Jo-Philipp Wich ee808f12b2 [package] netifd: repair dhcp client id option
Busybox udhcpc dropped support for the -c option, instead it can be emulated by using -x 0x3d:id,
change the dhcp protocol script accordingly and filter all colons from the id while we're at it.
This change supersedes http://patchwork.openwrt.org/patch/1810/

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32573 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-01 12:43:14 +00:00
Jo-Philipp Wich 3d25196097 include/image.mk: /tmp should have mode 1777
On the off chance that the root filesystem's /tmp is used directly as a
temporary directory instead of having a tmpfs mounted over it, it should have
the sticky bit set.

Signed-off-by: Mark Mentovai <mark@moxienet.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32572 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-01 11:48:54 +00:00
Jo-Philipp Wich cd2bdeddc5 [package] dnsmasq: introduce "add_local_hostname" and "add_local_domain" options
- add_local_domain defaults to 1 and controls whether the local domain is written as search directive to the local resolv.conf
 - add_local_hostname defaults to 1 and controls whether A and PTR records are created automatically for the local hostname
These change supersedes http://patchwork.openwrt.org/patch/2207/ and http://patchwork.openwrt.org/patch/2208/

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32570 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-01 11:32:46 +00:00
Jo-Philipp Wich 0c3f2b8bd6 package/dnsmasq: permit UCI configuration of --dhcp-fqdn option
This adds a new boolean option, fqdn, to the "config dnsmasq" section of
/etc/config/dhcp. The default is off. When set on, it enables the dhcp-fqdn
option to dnsmasq. dhcp-fqdn causes dnsmasq's DNS server to not resolve
unqualifed local hostnames. The "domain" option is required when using "fqdn".
Local hostnames will remain available for lookup using fully-qualified names.

Signed-off-by: Mark Mentovai <mark@moxienet.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32569 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-01 11:32:45 +00:00
Jo-Philipp Wich 93d0ae9729 [PATCH 1/4] package/dnsmasq: permit dhcp_option in global dnsmasq config section
dnsmasq currently permits dhcp_options to be specified only in "config dhcp"
sections of /etc/config/dhcp. When dnsmasq is providing DHCP service for
multiple subnets and there are multiple "config dhcp" sections without "option
ignore", it makes sense to allow dhcp_options that should apply globally in
the "config dnsmasq" section of /etc/config/dhcp. dhcp_option is a list option.

[jow: rework patch to apply after dhcp-option-force handling got introduced]

Signed-off-by: Mark Mentovai <mark@moxienet.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32568 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-01 11:32:29 +00:00
Jo-Philipp Wich 3686cbd5ca Fix extroot by UUID
Extroot works fine when the target device is specified by a path. It fails
however if the device is specified by UUID (the target partition gets mounted
much later by hotplug hooks). This is because the blkid command is no longer
compiled into BusyBox (since changeset [1]) so it's unavailable for the
preinit phase.

The closest bug report I was able to find is [2], although the reporting person
mentions that /tmp/overlay-disabled showed up which wasn't there in my case.

This patch sets PATH and LD_LIBRARY_PATH environment variables so that the
blkid command installed on the target device can be used by that particular
preinit script.

[1] https://dev.openwrt.org/changeset/26245
[2] https://dev.openwrt.org/ticket/10653

Signed-off-by: Jaroslaw Swierczynski <jarek1701@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32567 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-01 11:06:32 +00:00
Jo-Philipp Wich 89b6c406bd kernel/modules: load pppol2tp after pppox
l2tp_ppp needs to be loaded after pppox, otherwise it ends up like this:
l2tp_ppp: Unknown symbol pppox_ioctl (err 0)
...
during boot.
I also fixed the dependency, it should be pppox rather than pppoe.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32562 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-01 10:34:45 +00:00
Felix Fietkau fd52ba43a1 config: tag parallel build options with high build breakage probability with a BROKEN dependency to discourage users from spamming us with tickets about them
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32559 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-30 21:44:12 +00:00
Felix Fietkau f402383bf3 uClibc: add -Wno-unused-but-set-variable to get rid of unnecessary warning logspam
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32558 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-30 21:44:09 +00:00
Felix Fietkau 87cb557dcb uClibc: split the package into the main directory and the headers/ and utils/ subdirectories to clean up build order and fix quilt support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32557 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-30 21:44:05 +00:00