From fad17c829fe00e4815a5051b939c94b3311ed952 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 7 Sep 2007 20:57:08 +0000 Subject: [PATCH] some backports from trunk (untested) SVN-Revision: 8682 --- docs/Makefile | 7 +- docs/adding.tex | 2 +- docs/build.tex | 20 +- docs/config.tex | 26 ++- docs/network.tex | 12 ++ docs/wireless.tex | 112 +++++++++- include/prereq-build.mk | 3 +- include/prereq.mk | 11 +- package/base-files/Makefile | 2 +- package/base-files/files/bin/firstboot | 2 +- package/base-files/files/etc/functions.sh | 29 ++- .../files/etc/hotplug.d/iface/00-netstate | 3 - package/base-files/files/etc/ipkg.conf | 2 +- package/base-files/files/lib/config/uci.sh | 8 +- .../base-files/files/lib/network/config.sh | 1 + package/base-files/files/sbin/wifi | 10 +- package/broadcom-diag/Makefile | 2 +- package/broadcom-diag/src/diag.c | 22 +- package/broadcom-diag/src/diag.h | 1 + package/dnsmasq/Makefile | 10 +- package/dnsmasq/files/dnsmasq.init | 204 ++++++++++++++++-- package/dnsmasq/patches/101-ipv6.patch | 8 +- package/dnsmasq/patches/102-rtnetlink.patch | 6 +- package/dnsmasq/patches/103-hosts-fqdn.patch | 17 -- package/dropbear/Makefile | 16 +- .../dropbear/patches/100-pubkey_path.patch | 6 +- .../dropbear/patches/110-change_user.patch | 6 +- .../dropbear/patches/120-hostkey_prompt.patch | 13 -- .../patches/130-ssh_ignore_o_and_x_args.patch | 10 +- .../patches/140-use_dev_urandom.patch | 13 -- .../patches/150-dbconvert_standalone.patch | 6 +- package/dropbear/patches/160-tty_close.patch | 8 +- package/ebtables/Makefile | 5 +- package/hotplug2/Makefile | 2 +- package/hotplug2/files/hotplug2.rules | 5 + package/keynote/Makefile | 17 +- package/madwifi/Makefile | 11 +- package/madwifi/files/lib/wifi/madwifi.sh | 2 +- .../patches/131-minstrel_rateidx.patch | 17 ++ .../patches/306-bstuck_calibrate.patch | 102 --------- .../patches/306-mib_intr_workaround.patch | 83 +++++++ package/ppp/Makefile | 2 +- package/ppp/files/ppp.sh | 18 +- package/ppp/files/pppoe.sh | 5 + package/pptp/Makefile | 2 +- package/pptp/files/pptp.sh | 16 +- package/qos-scripts/Makefile | 2 +- .../qos-scripts/files/usr/lib/qos/generate.sh | 40 +++- package/rt61/Makefile | 12 +- .../rt61/patches/002-big_endian_fixes.patch | 61 ++++++ package/strongswan/Makefile | 30 +-- package/strongswan/files/ipsec.iface | 2 +- package/wlcompat/Makefile | 2 +- package/wlcompat/src/wlcompat.c | 2 +- package/zlib/Makefile | 4 +- scripts/config.pl | 10 +- scripts/download.pl | 26 ++- scripts/slugimage.pl | 19 +- scripts/timestamp.pl | 13 +- .../base-files/default/etc/init.d/netconfig | 5 + .../brcm-2.4/files/arch/mips/bcm947xx/time.c | 11 + .../patches-2.6.22/065-block2mtd_init.patch | 2 +- .../patches/065-block2mtd_init.patch | 2 +- .../files/arch/mips/rb500/prom.c.orig | 161 -------------- .../patches/150-uppercase_letters.patch | 26 +++ 65 files changed, 834 insertions(+), 481 deletions(-) delete mode 100644 package/dnsmasq/patches/103-hosts-fqdn.patch delete mode 100644 package/dropbear/patches/120-hostkey_prompt.patch delete mode 100644 package/dropbear/patches/140-use_dev_urandom.patch create mode 100644 package/madwifi/patches/131-minstrel_rateidx.patch delete mode 100644 package/madwifi/patches/306-bstuck_calibrate.patch create mode 100644 package/madwifi/patches/306-mib_intr_workaround.patch create mode 100644 package/rt61/patches/002-big_endian_fixes.patch delete mode 100644 target/linux/rb532-2.6/files/arch/mips/rb500/prom.c.orig create mode 100644 tools/ipkg-utils/patches/150-uppercase_letters.patch diff --git a/docs/Makefile b/docs/Makefile index 82381e3169..f6caa82603 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -2,13 +2,15 @@ ifeq ($(TOPDIR),) TOPDIR:=${CURDIR}/.. endif +all: compile + include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/prereq.mk MAIN = openwrt.tex DEPS = $(MAIN) Makefile config.tex network.tex network-scripts.tex network-scripts.tex wireless.tex build.tex adding.tex bugs.tex $(TMP_DIR)/.prereq-docs -all: +compile: $(NO_TRACE_MAKE) cleanup latex $(MAIN) $(NO_TRACE_MAKE) openwrt.pdf openwrt.html @@ -30,6 +32,9 @@ clean: cleanup cleanup: FORCE rm -f *.log *.aux *.toc *.out *.lg *.dvi *.idv *.4ct *.4tc *.xref *.tmp *.dvi +$(eval $(call RequireCommand,latex, \ + You need to install LaTeX to build the OpenWrt documentation \ +)) $(eval $(call RequireCommand,pdflatex, \ You need to install LaTeX to build the OpenWrt documentation \ )) diff --git a/docs/adding.tex b/docs/adding.tex index b1712ac9d2..2b47e6a328 100644 --- a/docs/adding.tex +++ b/docs/adding.tex @@ -357,7 +357,7 @@ firmware image and flash is structured. You will find below a commented example that covers the case of the device where the bootloader can pass to the kernel its partition plan. First of all, you need to make your flash map driver be visible in the kernel -configuration options, this can be done by editing the file +configuration options, this can be done by editing the file \ \textbf{linux/drivers/mtd/maps/Kconfig}: \begin{verbatim} diff --git a/docs/build.tex b/docs/build.tex index 03bd1a9675..fd5f075d5b 100644 --- a/docs/build.tex +++ b/docs/build.tex @@ -202,12 +202,6 @@ simplifies the entire ordeal. Here for example, is \texttt{package/bridge/Makefile}: \begin{Verbatim}[frame=single,numbers=left] -# -# Copyright (C) 2006 OpenWrt.org -# -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# # $Id: Makefile 5624 2006-11-23 00:29:07Z nbd $ include $(TOPDIR)/rules.mk @@ -229,12 +223,14 @@ define Package/bridge SECTION:=net CATEGORY:=Base system TITLE:=Ethernet bridging configuration utility - DESCRIPTION:=\ - Manage ethernet bridging: a way to connect networks together to \\\ - form a larger network. URL:=http://bridge.sourceforge.net/ endef +define Package/bridge/description + Manage ethernet bridging: + a way to connect networks together to form a larger network. +endef + define Build/Configure $(call Build/Configure/Default, \ --with-linux-headers="$(LINUX_DIR)" \ @@ -384,12 +380,6 @@ For external kernel modules, you can add them to the build system just like if t Here for instance the Makefile for the I2C subsytem kernel modules : \begin{Verbatim}[frame=single,numbers=left] -# -# Copyright (C) 2006 OpenWrt.org -# -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# # $Id $ I2CMENU:=I2C Bus diff --git a/docs/config.tex b/docs/config.tex index f3802198ed..17417c99a1 100644 --- a/docs/config.tex +++ b/docs/config.tex @@ -57,12 +57,28 @@ after \texttt{config\_load} is done. That allows you to process sections both before and after all options were processed. +Another way of iterating on config sections is using the \texttt{config\_foreach} command. + +Syntax: +\begin{Verbatim} +config_foreach [] [] +\end{Verbatim} + +This command will run the supplied function for every single config section in the currently +loaded config. The section name will be passed to the function as argument 1. +If the section type is added to the command line, the function will only be called for +sections of the given type. + + You can access already processed options with the \texttt{config\_get} command Syntax: \begin{Verbatim} -config_get