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
Florian Fainelli
c37f550144
Turn on stp by default for bridges ( #2476 )
...
SVN-Revision: 9343
2007-10-18 13:07:28 +00:00
Travis Kemen
1c09c55875
add clientid to udhcpc thanks pjama
...
SVN-Revision: 9159
2007-10-06 03:12:04 +00:00
Felix Fietkau
ce63393e36
sync awk implementation of config_get_bool with the shell variant
...
SVN-Revision: 8841
2007-09-19 15:36:30 +00:00
Felix Fietkau
1e38527a52
add sysupgrade script for config preserving system upgrades. only implemented for x86-2.6 at the moment, but can be ported to other platforms easily
...
SVN-Revision: 8456
2007-08-21 18:23:57 +00:00
Felix Fietkau
049dc2925b
fix a race condition with dynamic interfaces and firewalling
...
SVN-Revision: 8343
2007-08-04 13:26:41 +00:00
Mike Baker
57da2d5713
move uci_load into config_load so that changes can be applied via uci without commiting
...
SVN-Revision: 7927
2007-07-11 20:39:28 +00:00
Mike Baker
9a785f0b0a
more wpa+wds patches
...
SVN-Revision: 7888
2007-07-08 12:51:30 +00:00
Felix Fietkau
5b52ebfcb1
fix a race condition with broadcom wl devices in a bridge if a device is added before the bridge is brought up, the wifi settings are lost
...
SVN-Revision: 7872
2007-07-04 05:05:46 +00:00
Mike Baker
810b0bcb22
fix broadcast address ( #1611 )
...
SVN-Revision: 7766
2007-06-28 23:07:29 +00:00
Felix Fietkau
4f16e9cc3e
keep track of the network interface states (stored in uci format in /var/state/network, overlay over /etc/config/network)
...
SVN-Revision: 7643
2007-06-16 00:01:33 +00:00
Felix Fietkau
90d54c0faa
more fixes
...
SVN-Revision: 7639
2007-06-15 16:07:09 +00:00
Felix Fietkau
5e6f8739be
some shell variable handling fixes
...
SVN-Revision: 7638
2007-06-15 15:59:56 +00:00
Felix Fietkau
74f84753e7
fix typo
...
SVN-Revision: 7637
2007-06-15 15:18:58 +00:00
Felix Fietkau
796e53414f
allow config_* and uci_* functions to work on files outside of /etc/config - these files are assumed to use commands generated by uci_* only (as overlay to regular config files)
...
SVN-Revision: 7636
2007-06-15 15:12:57 +00:00
Travis Kemen
ff111c2511
keep uci_set from saving things that have not changed
...
SVN-Revision: 7259
2007-05-16 14:46:23 +00:00
Eugene Konev
9cea5657af
Fix ipv6 address assignment ( #1622 ).
...
SVN-Revision: 7116
2007-05-06 16:52:46 +00:00
Mike Baker
10ac836039
various patches to add support for ppp over evdo or character devices
...
SVN-Revision: 7076
2007-05-01 21:53:32 +00:00
Felix Fietkau
478ee4a135
network config: ignore nonexistant interfaces
...
SVN-Revision: 6819
2007-04-02 09:41:56 +00:00
Felix Fietkau
7f0dd3fa45
rename uci-update.awk to uci.awk and add a few config_* functions
...
SVN-Revision: 6666
2007-03-24 13:43:04 +00:00
Felix Fietkau
f9abb7cbba
add an optional parameter to scan_interfaces() that can override the network config file (defaults to 'network')
...
SVN-Revision: 6619
2007-03-19 22:06:31 +00:00
Felix Fietkau
2c62bddcfe
Add an 'Image Configuration' menu to menuconfig Packages can export a list of config options with labels and data types through the metadata. The selected config values will be exported to the target filesystem in /etc/uci-defaults and applied on the first boot.
...
SVN-Revision: 6572
2007-03-16 03:02:31 +00:00
Felix Fietkau
a44c286fdb
nuke mdev and replace it with hotplug2 :)
...
SVN-Revision: 6512
2007-03-04 20:31:53 +00:00
Felix Fietkau
c1ab24d04a
add a check for brctl in the unbridge() function ( fixes #1417 )
...
SVN-Revision: 6410
2007-02-27 23:34:14 +00:00
Felix Fietkau
9405a2a6be
Integrate basic UCI config file validation support Needs more testing and validation is not enforced yet
...
Code contributed by Fraunhofer Fokus
SVN-Revision: 6391
2007-02-26 20:04:04 +00:00
Felix Fietkau
43580f1b1d
integrate the fix from #1348 and clean up the network scripts a bit...
...
SVN-Revision: 6355
2007-02-25 12:52:02 +00:00
Felix Fietkau
2ff5dc759a
add broadcast setting for /etc/config/network interfaces
...
SVN-Revision: 6225
2007-01-27 21:58:03 +00:00
Felix Fietkau
857d350bc7
ignore the bridge option if brctl is not available
...
SVN-Revision: 6145
2007-01-20 15:28:47 +00:00
Felix Fietkau
73e982ce0c
Fix the issue where the default gateway is not set in static mode most of the time. Seems like the bridge is not fast enough at switching to 'forwarding' mode so a short delay before setting the routes is necessary.
...
SVN-Revision: 6123
2007-01-17 21:29:53 +00:00
Felix Fietkau
d18161d2df
add checks for {ip,ip6}addr in the network config
...
SVN-Revision: 6099
2007-01-14 22:29:13 +00:00
Felix Fietkau
656412d1a3
Forward port whiterussian resolv.conf changes /etc/resolv.conf links to /tmp/resolv.conf /tmp/resolv.conf links to /tmp/resolv.conf.auto by default (which is where the ISPs nameserver is in) When dnsmasq starts, it replaces /tmp/resolv.conf with a file pointing to 127.0.0.1
...
SVN-Revision: 6043
2007-01-08 21:33:53 +00:00
Felix Fietkau
218b006536
fix CONFIG_FILENAME in uci_commit()
...
SVN-Revision: 5791
2006-12-14 17:29:51 +00:00
Felix Fietkau
bfd12920bb
fix typo
...
SVN-Revision: 5790
2006-12-14 17:28:19 +00:00
Felix Fietkau
3310901f9b
fix uci_load trash output ( #1040 )
...
SVN-Revision: 5745
2006-12-10 03:37:14 +00:00
Florian Fainelli
cac1789e6c
Set up ipv6 address if provided in network configuration ( #1028 )
...
SVN-Revision: 5738
2006-12-09 16:57:31 +00:00
Felix Fietkau
545284a609
fix a typo
...
SVN-Revision: 5719
2006-12-08 11:25:10 +00:00
Felix Fietkau
7cc6503877
add option for setting the mac address ( #1014 )
...
SVN-Revision: 5690
2006-12-04 23:22:06 +00:00
Felix Fietkau
59a06c71cb
rename default/ to files/
...
SVN-Revision: 5622
2006-11-22 23:30:57 +00:00