Commit Graph

187 Commits (0b5da2e16e1a661f409c41e94cc6dba7de4f01e5)

Author SHA1 Message Date
Michael Büsch 3a12229c1d Fix whitespace
SVN-Revision: 25632
2011-02-20 21:25:45 +00:00
Jo-Philipp Wich ee3a4c2ee9 base-file: cleanup ipv6 enabling in unbridge
SVN-Revision: 25473
2011-02-12 16:14:15 +00:00
Jo-Philipp Wich 875ff44592 base-files: - properly disable IPv6 on bridge ports - introduce accept_ra option, defaults to true for dhcp interfaces, false for others - introduce send_rs option, defaults to true for static interfaces, false for others
SVN-Revision: 25454
2011-02-11 00:39:11 +00:00
Jo-Philipp Wich a0b2eba08c base-files: fix a typo in processing of additional dhcp request opts
SVN-Revision: 25239
2011-01-29 17:06:07 +00:00
Jo-Philipp Wich a8edd9d50e base-files: fix handling of dhcp "reqopts" option
SVN-Revision: 25237
2011-01-29 13:45:16 +00:00
Gabor Juhos 25feec0c9c package/base-files: add get_magic_long() to common upgrade script
Patch-by: Mark Mentovai <mark@moxienet.com>

SVN-Revision: 25117
2011-01-26 20:35:37 +00:00
Jo-Philipp Wich 3b6851aa82 base-files: implement "reqopts" parameter for dhcp interfaces to specify additional dhcp options to request
SVN-Revision: 24780
2010-12-22 07:20:24 +00:00
Jo-Philipp Wich deb9661785 Âbase-files: don't mark /etc/banner as conffile
SVN-Revision: 24742
2010-12-20 19:51:05 +00:00
Jo-Philipp Wich ca829e805b base-files: disable ipv6 on bridge ports, this prevents stray RA assigned and link local addresses on bridge member devices
SVN-Revision: 24194
2010-11-30 00:46:21 +00:00
Jo-Philipp Wich d0ab35c115 base-file: add metric option for static and dhcp protos, this simplifies the management of multiple default routes
SVN-Revision: 24020
2010-11-17 19:11:50 +00:00
Jo-Philipp Wich c5711cadd3 base-files: change /dev permissions to 0755 when hotplug2 is used (#6039)
SVN-Revision: 23908
2010-11-07 00:28:15 +00:00
Jo-Philipp Wich a8efa34da3 Fix permissions for /etc and other dirs after clean flash (#6039)
During the first OpenWrt boot after a clean flash (when the jffs2
partition is not yet initialized) tmpfs is used instead of the usual
jffs2 overlay filesystem.  If this tmpfs is mounted with default
options, all directories created there (/etc, /etc/config, other
subdirectories in /etc) get permissions 1777 by default, and these
permissions then persist in the created jffs2 at least until
subsequent sysupgrade.  Mounting tmpfs with mode=0755 fixes the
permission problem.

Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>

SVN-Revision: 23906
2010-11-07 00:26:00 +00:00
Jo-Philipp Wich d856ed78ad base-files: add udhcpc vendorid option (#7744)
SVN-Revision: 23279
2010-10-06 21:21:28 +00:00
Jo-Philipp Wich d80f82d7a4 base-files: - add sysupgrade support for keepfile hints * introduces /lib/upgrade/keep.d/ for per-package keepfile lists * introduces /etc/sysupgrade.conf for user defined keepfile hints - prime /lib/upgrade/keep.d/base-files-essential to keep sysupgrade usable for images without opkg - change sysupgrade to build the keepfile list from /lib/upgrade/keep.d/, /etc/sysupgrade.conf and opkg list-changed-conffiles
SVN-Revision: 23258
2010-10-05 19:24:12 +00:00
Jo-Philipp Wich 6bcdab79b6 base-files: prevent possible sourcing of JFFS2 meta files when merging overlay hooks
SVN-Revision: 23114
2010-09-23 17:32:58 +00:00
Daniel Dickinson b125e3f68e Fixed duplicated content in file in commit 23111
SVN-Revision: 23112
2010-09-23 14:06:47 +00:00
Daniel Dickinson 7fe34123d6 Missed file committing previous change 23110
SVN-Revision: 23111
2010-09-23 14:03:22 +00:00
Daniel Dickinson 18b473ca9b base/block-extroot, base/block-mount: Modified preinit and block-extroot and block-mount so that use of block-mount and block-extroot do not require that block-extroot, block-mount, nor the kernel modules they depend, on are required to included in the image. That is block-extroot and dependencies may now be installed as modules onto the jffs2 part of a squashfs system and it will work. In addition packages which are installed into the jffs2 of a squashfs system may now affect preinit, so long as they do not require execution of commands that occur before the merging of the jffs2 and built-in (squashfs) preinit scripts is done.
Thanks jow for the preinit merge stuff!

SVN-Revision: 23110
2010-09-23 13:58:05 +00:00
Daniel Dickinson 1385904dfa base-files: Add function pi_include the /lib/functions/boot.sh used by preinit, which safely sources files as well as working correctly whether the script using it is a package added to the jffs2 part of a squashfs or built into an image or on some other root filesystem.
SVN-Revision: 23099
2010-09-19 23:29:40 +00:00
Jo-Philipp Wich 52531f4eb6 base-files: kill possibly existing udhcpc instance when bringing up a dhcp iface, utilize service_kill() in dhcp shutdown. Based on patch by Stijn Tintel. Possibly related to #7314
SVN-Revision: 23092
2010-09-19 15:13:06 +00:00
Jo-Philipp Wich 8c4ac87e8f base-files: r22444 caused interfaces to remain down if the macaddr option is used, fix it. Also localize the txqueuelen option variable
SVN-Revision: 22467
2010-08-02 20:45:52 +00:00
Florian Fainelli 56aa129fed add txqueuelen option, patch from Roberto Riggio
SVN-Revision: 22444
2010-07-31 22:32:28 +00:00
Jo-Philipp Wich 9bf9ea9802 base-files: localize variable in do_move_devtmpfs(), remove extra temporary variable and shorten conditional
SVN-Revision: 22380
2010-07-24 19:33:11 +00:00
Alexandros C. Couloumbis 6a85a3b53b package/base-files: add support for devtmpfs (thank you rauchwolke at gmx.net)
SVN-Revision: 22379
2010-07-24 19:21:27 +00:00
Jo-Philipp Wich e1a654dd9f base-files: unconditionally unlock the rootfs_data partition (#7437)
SVN-Revision: 22377
2010-07-24 15:47:15 +00:00
Jo-Philipp Wich 93c2c81bcf base-files: introduce option "broadcast" for proto=dhcp interface to enable the broadcast flag in DHCP requests, required by certain providers
SVN-Revision: 21661
2010-06-02 20:21:41 +00:00
Jo-Philipp Wich fa244a1265 base-files: remove IPv6 LL addr from interfaces before adding them to a bridge
SVN-Revision: 21659
2010-06-02 17:18:38 +00:00
Jo-Philipp Wich 94db915196 base-files: - add aliases to device by default (not ifname) - introduce option "layer" to select the target ifname to attach the alias to: - 3 use tun device (tun over bridge over device) fallback to bridge or device - 2 use bridge (bridge over device) fallback to device - 1 use device
SVN-Revision: 21655
2010-06-02 00:22:13 +00:00
Jo-Philipp Wich 75941a19ac base-file: move alias setup to route hotplug, this fixes alias sections for non-static interfaces like ppp, dhcp, 6in4 etc.
SVN-Revision: 21652
2010-06-01 21:43:52 +00:00
Jo-Philipp Wich 261d41a906 base-files: - use add_dns() and remove_dns() for when changing resolv.conf.auto for static or dhcp interfaces - force 0644 permissions when creating resolv.conf.auto, fixes dnsmasq permissions denied problem with pppd interfaces - revert dns servers in /sbin/ifdown - bump package revision
SVN-Revision: 21638
2010-05-30 18:23:43 +00:00
Jo-Philipp Wich 09df0523fd base-files: revert r21595
SVN-Revision: 21597
2010-05-28 10:52:02 +00:00
Jo-Philipp Wich 482b8385d2 base-files: bring bridge port iface down before changing the mac (#7111)
SVN-Revision: 21595
2010-05-28 00:59:19 +00:00
Felix Fietkau 6df2ad3e70 when changing the mac address of a bridge interface, keep member interface addresses in sync (patch from #7111)
SVN-Revision: 21577
2010-05-27 14:04:28 +00:00
Jo-Philipp Wich d6a142375b base-files: fix a preinit hang in jffs2_ready() when no rootfs_data partition is found (#7362)
SVN-Revision: 21511
2010-05-20 05:57:54 +00:00
Jo-Philipp Wich be41fdd01a base-files: add add_dns() and remove_dns() helpers to network config, useful to merge dns entries from multiple interfaces
SVN-Revision: 21391
2010-05-07 01:17:47 +00:00
Jo-Philipp Wich dd38b15b75 base-files, ppp: fix interface shutdown
SVN-Revision: 21386
2010-05-06 01:14:24 +00:00
Jo-Philipp Wich 66ab73d01f base-files, ppp: remove protocol specific cleanup code from /sbin/ifdown and move it to protocol stop callbacks
SVN-Revision: 21383
2010-05-05 23:24:11 +00:00
Jo-Philipp Wich 163b15f5bb base-files: make press key message more explicit in preinit
SVN-Revision: 20392
2010-03-23 22:56:12 +00:00
Florian Fainelli 7af8ee0481 change from /jffs to /overlay, patch from Daniel Dickinson
SVN-Revision: 20356
2010-03-21 17:16:50 +00:00
Felix Fietkau 73f61a64eb fix error output of brctl if bridging is not supported.
The following error is displayed during network configuration on any device that has DEVICE_TYPE set to something else then router, or has brctl functionality disabled through some other method:

"brctl: SIOCGIFBR: Package not installed"

This is due to the unbridge function being called, which uses "brctl show" to determine if the interface is bridged.

Signed-off-by: Ithamar R. Adema <ithamar.adema@team-embedded.nl>

SVN-Revision: 20218
2010-03-14 21:10:07 +00:00
Jo-Philipp Wich 1968fb8da3 base-files: force preinit to use busybox mount (#6797)
SVN-Revision: 20176
2010-03-13 02:59:05 +00:00
Gabor Juhos 32be7f7605 package/base-files: call preinit_ip_deconfig before processing init on initramfs images
SVN-Revision: 20159
2010-03-12 14:37:19 +00:00
Nicolas Thill d08b2b02cf base-files: fix preinit code typos
Signed-off-by: Ithamar R. Adema <ithamar.adema@team-embedded.nl>
Acked-by: Daniel Dickinson <cshore@csolve.net>

SVN-Revision: 20124
2010-03-10 18:09:53 +00:00
Nicolas Thill 45f7dc9459 firstboot: fix typo (closes: #6738)
SVN-Revision: 19944
2010-03-01 23:54:45 +00:00
Felix Fietkau 524303b849 base-files: fix enter failsafe message
SVN-Revision: 19937
2010-03-01 18:20:39 +00:00
Felix Fietkau 9be4598569 add block-extroot, a package for using an external filesystem as rootfs (patch by cshore)
SVN-Revision: 19880
2010-02-26 22:46:10 +00:00
Jo-Philipp Wich 250b52f673 base-files: revert dhcp state information on ifdown and restore pre-r19530 behaviour in udhcp default.script
SVN-Revision: 19597
2010-02-12 02:06:57 +00:00
Jo-Philipp Wich 7ad9c8615f base-file: revert unrelated change accidentally committed in r19478
SVN-Revision: 19488
2010-02-01 02:00:57 +00:00
Jo-Philipp Wich e367f5434a base-files: preinit: get rid of /dev/null redirections and use grep -q where applicable
SVN-Revision: 19478
2010-02-01 00:32:46 +00:00
Florian Fainelli b93682af14 quieten the check for devs, thanks nbd
SVN-Revision: 19473
2010-01-31 21:09:53 +00:00
Florian Fainelli 7480065917 /dev/null was used before it was created, so an empty file was created. This prevented the actual device node from being created. The attached patch fixes that, patch from cshore
SVN-Revision: 19472
2010-01-31 21:01:21 +00:00
Felix Fietkau b88fc11e2a preinit: Remove Ctrl-C prompt...impossible on /dev/console (patch by cshore)
SVN-Revision: 19367
2010-01-28 19:27:49 +00:00
Felix Fietkau 56bc02a305 add preinit modularization work by Daniel Dickinson (cshore)
SVN-Revision: 19331
2010-01-25 17:11:17 +00:00
Jo-Philipp Wich 8d0bb8f5dd base-files: ensure that the ip6addr of the main interface stays the primary ip by re-adding it after alias setup is completed - patch by Alina Friedrichsen
SVN-Revision: 19303
2010-01-23 22:56:07 +00:00
Jo-Philipp Wich 39f2b6d957 base-files: sysupgade library coomon.sh has "bug" in glibc enviorement. For some reason ld-linux.so.3 is not installed at ramfs and sysupgrade always fails. Signed-off-by: Zintis Petersons <zintis.petersons@e-mail.lv>
SVN-Revision: 19167
2010-01-16 13:39:13 +00:00
Hamish Guthrie 406a4a885d Add udhcpc command-line argument to request rootpath
SVN-Revision: 18876
2009-12-21 10:25:15 +00:00
Felix Fietkau e9aa394113 remove obsolete uci validation awk code
SVN-Revision: 18110
2009-10-20 21:48:40 +00:00
Jo-Philipp Wich 2f921cb48d base-files: clear ip addresses on interfaces that are about to be added to a bridge
SVN-Revision: 17596
2009-09-16 14:21:19 +00:00
Felix Fietkau 91d40a14af Revert "fix nonhotpluggable networks not being brought up. Closes #2781" (r17527) until we've solved the race conditions it creates
SVN-Revision: 17544
2009-09-09 00:16:55 +00:00
Travis Kemen 27915ac778 fix nonhotpluggable networks not being brought up. Closes #2781
SVN-Revision: 17527
2009-09-06 17:02:14 +00:00
Jo-Philipp Wich 7d1c2a0612 base-files: fix sysupgrade get_magic_word() function to return proper values if the first two bytes are identical
SVN-Revision: 17319
2009-08-19 19:12:34 +00:00
Jo-Philipp Wich 27da9d1984 base-files: move ipv6 module loading from setup_interface() to addif() in the hotplug call, this ensures that ipv6 is loaded before any interfaces or aliases with ip6addr option are configured (#5356)
SVN-Revision: 17217
2009-08-10 23:48:10 +00:00
Felix Fietkau 91f98f1756 base-files: some /lib/network/config.sh refactoring
* Localize a lot more variables than before.
* Do stuff or localize variables at later points or inner blocks
  so less commands are executed in some cases.
* Use the default option of config_get where it makes sense.

Signed-off-by: Malte S. Stretz <mss@apache.org>

SVN-Revision: 17160
2009-08-07 00:08:06 +00:00
Jo-Philipp Wich 3bb5ea71eb base-files: ensure that ipv6 is loaded if interfaces have an ip6addr defined, clean trailing whitespace, bump pkg revision (#5356)
SVN-Revision: 17118
2009-08-04 00:06:47 +00:00
Vasilis Tsiligiannis baa9053e7a base-files: Fix sysupgrade .tar.gz configuration restoring
SVN-Revision: 16626
2009-06-29 21:13:05 +00:00
Jo-Philipp Wich c6fe201fb6 sysupgrade: sync *before* mtd write, only fallback to sysrq-trigger if standard reboot fails
SVN-Revision: 16488
2009-06-17 11:09:10 +00:00
Vasilis Tsiligiannis f4a81139b7 base-files: Add support for bzipped images in sysupgrade
SVN-Revision: 16408
2009-06-10 22:34:14 +00:00
Vasilis Tsiligiannis 57d7cc7666 base-files: Detect and decompressed gzipped images automatically when flashing with sysupgrade
SVN-Revision: 16407
2009-06-10 22:22:48 +00:00
Vasilis Tsiligiannis d1f5700e78 base-files: format hexdump output instead of using awk for sysupgrade
SVN-Revision: 16405
2009-06-10 21:52:07 +00:00
Vasilis Tsiligiannis 5b72dc3d8f base-files: fix test experession for sysupgrade
SVN-Revision: 16310
2009-06-03 18:15:04 +00:00
Felix Fietkau 642870d0cc network: prevent unnecessary interface down/up cycles if no mac address change is requested
SVN-Revision: 16269
2009-06-01 18:09:05 +00:00
Felix Fietkau 154ebf9380 network: do not unnecessarily touch interfaces configured as proto=none; bring down old aliases before setting up new ones
SVN-Revision: 16266
2009-06-01 18:07:44 +00:00
Jo-Philipp Wich af8500e97d sysupgrade: use sysrq-trigger if available
SVN-Revision: 15865
2009-05-15 12:10:26 +00:00
Jo-Philipp Wich d8aee6e471 base-files: show reboot notification is sysupgrade
SVN-Revision: 15730
2009-05-09 01:54:09 +00:00
Jo-Philipp Wich 71e0f59b80 Add option in sysupgrade to flash gzipped images
SVN-Revision: 15672
2009-05-07 13:27:10 +00:00
Felix Fietkau 6397e188af do not run hotplug event for aliases
SVN-Revision: 15224
2009-04-13 00:43:23 +00:00
Jo-Philipp Wich 9a72419724 - fix mac assignment for broadcom vifs in bridging mode - thanks abramoff1 for spotting this - fix possible regression with different interface protocols - bump PKG_RELEASE
SVN-Revision: 15042
2009-03-25 19:13:15 +00:00
Jo-Philipp Wich 7e6c947e4b sync macs with vif bssids in broadcom.sh, fixes multi-ssid with wpa
SVN-Revision: 15028
2009-03-24 23:42:09 +00:00
Jo-Philipp Wich 8a6acee2e2 sysupgrade: install /bin/sleep into ramdisk too and add completition notice (#4747)
SVN-Revision: 14784
2009-03-08 00:21:25 +00:00
Jo-Philipp Wich 789848d327 Prevent "SIOCSIFHWADDR: Device or resource busy" when trying to change mac address
SVN-Revision: 13258
2008-11-17 10:47:02 +00:00
Nicolas Thill ac915623a6 make network config script work with brctl from both bridge-utils & busybox
SVN-Revision: 13165
2008-11-09 22:48:56 +00:00
Felix Fietkau 9b75b9e35c don't bring down interfaces when preparing them
SVN-Revision: 13079
2008-10-29 17:26:59 +00:00
Felix Fietkau 7300d22877 install missing busybox symlinks for sysupgrade (patch by Frédéric Moulins)
SVN-Revision: 12695
2008-09-25 11:31:35 +00:00
Felix Fietkau f47a4a58c5 fix sysupgrade support for brcm-2.4 and brcm47xx make mtd refresh based config append optional (leave enabled on x86)
SVN-Revision: 12657
2008-09-23 11:05:54 +00:00
Felix Fietkau 22585e578b sysupgrade: add optional delay before rebooting
SVN-Revision: 12572
2008-09-12 19:51:30 +00:00
John Crispin fd26ece7f1 fixes variables, oops
SVN-Revision: 12344
2008-08-20 11:45:23 +00:00
John Crispin 3cf1a8932b adds the option to have no proto for a interface, usefull if the uci states need to be set, but interface bring up is handled somewhere else
SVN-Revision: 12343
2008-08-20 11:17:40 +00:00
Felix Fietkau c05eb4ba63 add basic interface alias support. for now (since we don't use ip in our network scripts yet), it adds :1, :2, ... alias interfaces this will change when we add support for the ip utility, but the config format will remain the same. example:
config alias     test
option interface lan
option ipaddr    192.168.1.1
option netmask   255.255.0.0

SVN-Revision: 12241
2008-08-07 15:28:48 +00:00
Felix Fietkau d98002bd59 avoid duplicate vlan add events
SVN-Revision: 12057
2008-08-01 03:01:25 +00:00
Felix Fietkau 11df62d176 link default routes added by the network scripts to the appropriate interface (#2621)
SVN-Revision: 12027
2008-07-30 22:49:25 +00:00
Felix Fietkau e606b1603b properly keep track of bridged interfaces in the network state
SVN-Revision: 12004
2008-07-30 05:22:02 +00:00
Travis Kemen 7346ef83e1 fix sysupgrade endian issues
SVN-Revision: 11900
2008-07-22 01:11:30 +00:00
Felix Fietkau 036b397595 fix sysupgrade 'do_upgrade: not found' error
SVN-Revision: 11362
2008-06-04 23:20:56 +00:00
Felix Fietkau 3c94156b28 fix use of uci_set_state in network scripts (thx, netprince)
SVN-Revision: 10763
2008-04-07 16:02:50 +00:00
Felix Fietkau f4f7d687f0 fix interface enumeration issues related to /var/state/network (thx to fish for debugging this)
SVN-Revision: 10715
2008-04-02 21:27:28 +00:00
Felix Fietkau 0cf1a58282 Here comes the new UCI. Enjoy :)
SVN-Revision: 10367
2008-02-03 06:48:15 +00:00
Felix Fietkau 2afa8ad23c fix ppp issues (thanks to Fatus for debugging this)
SVN-Revision: 9634
2007-11-30 09:43:05 +00:00
Florian Fainelli d8faf285a8 Allow specifying static IPv6 gateways (#2710)
SVN-Revision: 9569
2007-11-16 07:27:59 +00:00
Felix Fietkau 071a907015 add support for interfaces with ipv6, but no ipv4 (patch from #2695)
SVN-Revision: 9545
2007-11-12 16:29:08 +00:00
Florian Fainelli 0d2e9a6539 Turn off stp by default, thanks ejka
SVN-Revision: 9345
2007-10-18 13:20:02 +00:00