1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-05 17:50:38 +02:00
Commit Graph

397 Commits

Author SHA1 Message Date
nbd
8a855b152e base-files: port init.d/boot to new config_get
... and localize some variables.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17157 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-07 00:07:51 +00:00
nbd
d84cebe2b4 base-files: port functions.sh to new config_get
Signed-off-by: Malte S. Stretz <mss@apache.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17156 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-07 00:07:46 +00:00
nbd
eb62b765c4 base-files: allow default value for config_get
Signed-off-by: Malte S. Stretz <mss@apache.org>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17155 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-07 00:07:42 +00:00
jow
ef1435675c [package] base-files: ensure that ipv6 is loaded if interfaces have an ip6addr defined, clean trailing whitespace, bump pkg revision (#5356)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17118 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-04 00:06:47 +00:00
florian
8436680884 [pakcage] simplify action handling in rc.common (#5558)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17012 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-26 12:34:09 +00:00
acinonyx
7c0132efd3 udhcpc: Pass all events to udhcpc.user
Petitboot and maybe other apps need to know when
the dhcp lease is lost.  Move the udhcpc.user call
to send it all udhcpc events.

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16815 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-12 15:38:04 +00:00
nbd
8ae4dfd85c allow udhcpc to work properly for interfaces that are not configured through uci
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16664 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-03 22:12:40 +00:00
acinonyx
75b6ff7031 [package] base-files: Fix sysupgrade .tar.gz configuration restoring
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16626 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-29 21:13:05 +00:00
jow
b0dfa67387 [package] base-files: ipcalc.sh: fix off-by-one in range-calculation
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16619 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-29 11:35:33 +00:00
nbd
6972e6f26a change sysctl.conf to disable tcp ecn by default (based on discussion with marek who stumbled upon this, it creates hard-to-debug connectivity issues with providers/servers that still use buggy equipment)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16499 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-17 21:57:07 +00:00
jow
032f0de1f9 [package] sysupgrade: sync *before* mtd write, only fallback to sysrq-trigger if standard reboot fails
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16488 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-17 11:09:10 +00:00
nbd
49d3415549 udhcpc: add cidr routes support (patch from #5299)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16433 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-13 14:42:47 +00:00
acinonyx
337bcd03ce [package] base-files: Add support for bzipped images in sysupgrade
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16408 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-10 22:34:14 +00:00
acinonyx
4f43c816a4 [package] base-files: Detect and decompressed gzipped images automatically when flashing with sysupgrade
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16407 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-10 22:22:48 +00:00
acinonyx
510e735d56 [package] base-files: format hexdump output instead of using awk for sysupgrade
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16405 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-10 21:52:07 +00:00
acinonyx
5b0cf9ddca [package] base-files: fix test experession for sysupgrade
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16310 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-03 18:15:04 +00:00
nbd
5d422a4b0e network: prevent unnecessary interface down/up cycles if no mac address change is requested
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16269 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-01 18:09:05 +00:00
nbd
ce35aafec5 network: do not unnecessarily touch interfaces configured as proto=none; bring down old aliases before setting up new ones
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16266 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-01 18:07:44 +00:00
hcg
9ef5191b01 [hotplug2] Removed extra ; in exec rule
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16243 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-01 08:48:37 +00:00
florian
372e5282aa [package] fix drivers firmware loading with the new hotplug2, patch from Russell Senior
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16231 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-31 12:08:15 +00:00
juhosg
4e613cd1e8 [package] base-files: set rules file for hotplug2 in the boot script (closes #5235)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16215 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-30 17:09:41 +00:00
juhosg
13a73da7c8 [package] base-files: update command line for the new hotplug2
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16154 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-28 18:48:54 +00:00
jow
983acddc60 [package] base-files: fixup resolv.conf check in udhcpc script
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15903 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-17 17:56:26 +00:00
nico
b1df753746 [package] base-files: initialize GZIPED to 0 in sysupgrade since it's used later in numeric comparisons
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15890 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-17 11:54:44 +00:00
jow
e5b98fff8d [package] sysupgrade: use sysrq-trigger if available
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15865 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-15 12:10:26 +00:00
jow
6dcf3c5eff [package] base-files:
- restore device, ifname and aliases state in dhcp script
	- make sure that resolv.conf.tmp is written once at least for statically configured dns


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15753 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-10 15:53:02 +00:00
jow
38e0e195e1 [package] base-files: show reboot notification is sysupgrade
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15730 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-09 01:54:09 +00:00
jow
2eba59293a [sysupgrade] Don't try to pivot to new ramfs if already running on one
This patch allows the sysupgrade script to continue with the upgrade if
openwrt is already running on a ramfs. This allows the use of the sysupgrade
script as an _installer_ when running from an iso image. A user could boot the 
system from a bootable cd and invoke sysupgrade -n <URL> to write an image to
the hard disk or CF.

Signed-off-by: Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15683 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-07 13:51:45 +00:00
jow
45ff7559b1 [PATCH] Add option in sysupgrade to flash gzipped images
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15672 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-07 13:27:10 +00:00
jow
499a89fad2 [package] base-files: replace udhcpc script with an improved version
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15635 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-06 12:51:12 +00:00
nbd
a55e31b517 rcS: wait for init scripts to complete before initiating the shutdown (patch from #5032)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15530 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-30 22:59:18 +00:00
jow
cc6ac91ec7 [package] base-files: make diag.sh stub working in bash
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15527 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-30 21:00:57 +00:00
nico
ebccf413f5 add an explicit 'sysinit' tag for logging initscripts output, instead of '' that was logged as is
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15323 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-21 12:02:34 +00:00
jow
aa9736360e fix broken logic in r15272, r15273
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15274 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-19 17:12:02 +00:00
jow
eb4ec858a3 [package] base-files: (#4928)
handle "option gateway 0.0.0.0" and "option gateway interface" in route sections
as "no gateway given" to allow defining gateway-less routes while still keeping
the possibility to have static routes with a proper gateway on interfaces with#
dynamic ips


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15272 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-19 16:51:58 +00:00
nbd
796a9d1091 get rid of $Id$ - it has never helped us and it has broken too many patches ;)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15242 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-17 14:09:46 +00:00
nbd
cec137000a do not run hotplug event for aliases
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15224 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-13 00:43:23 +00:00
jow
dda4e674ce [package] base-files: remove redundant netmask handling in 10-routes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15219 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-12 16:39:29 +00:00
hauke
8f53d03355 [wifi] In wifi_fixup_hwmode the value 11bg for hwmode was not transfered to bg.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15180 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-09 20:16:01 +00:00
nbd
252c6645de tweak some sysctl values for better performance
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15129 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-07 02:51:04 +00:00
nbd
fcd35cb061 rename our /bin/login script to /bin/login.sh to avoid collisions with busybox - we always use -l on telnetd anyway
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15097 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-04 09:35:55 +00:00
nbd
d58097e65d fix failsafe mode
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15096 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-04 09:35:49 +00:00
nbd
0eec108cc8 udhcpc: run dhcp hotplug events after dns has been set
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15095 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-04 07:07:25 +00:00
nbd
dbaa421297 wifi: fix hostapd + autochannel
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15055 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-27 21:14:59 +00:00
jow
bc175c58b0 [package]
- fix mac assignment for broadcom vifs in bridging mode - thanks abramoff1 for spotting this
	- fix possible regression with different interface protocols
	- bump PKG_RELEASE


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15042 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-25 19:13:15 +00:00
jow
6d85891fde [package] sync macs with vif bssids in broadcom.sh, fixes multi-ssid with wpa
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15028 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-24 23:42:09 +00:00
mb
c1fef4b90b Allow running without "logger" installed
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14938 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-18 13:05:18 +00:00
mb
f8f902be7b Support configurations without syslogd/klogd.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14937 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-18 12:20:21 +00:00
nbd
57a1576550 move input device nodes to /dev/input
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14809 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-09 15:06:15 +00:00
jow
3099fb8fb3 [package] sysupgrade: install /bin/sleep into ramdisk too and add completition notice (#4747)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14784 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-08 00:21:25 +00:00
hauke
883ca719d3 [base-files]: On shutdown disabled every mounted swap device.
Fixes #4721
Thanks to Angel Marin


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14770 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-07 12:58:08 +00:00
jow
cc9443e4a7 [package] base-files: allow option dns to override dhcp assigned dns servers
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14562 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-02-19 05:27:36 +00:00
florian
9c3bf81864 [base-files] allow specifying port where to log (#2019)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14396 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-02-03 20:26:00 +00:00
matein4
8878fc63f1 Use block events for the mounting/unmounting of external storage devices.
This handles both USB and IEEE1394 devices. It removes /sbin/usb-storage in
favor of using the block hotplug event. There are dummy scripts to handle the
plug in/out of USB and IEEE1394 devices for updating LEDs. Storage devices 
are mount as a sub-directory under /mnt.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14289 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-01-30 20:48:42 +00:00
florian
dd8b9f6554 [package] increase default size of the connection tracking table, thanks Marc
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14283 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-01-30 14:13:09 +00:00
nbd
5bd5e4e086 fix $HOME in /etc/profile (#4424)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13914 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-01-07 04:38:57 +00:00
jow
15f9be1011 package/base-files: fix chmod of /tmp/.uci, bump package revision
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13903 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-01-06 21:53:45 +00:00
jow
e713ba8d94 allow ipv4 routes without gateway in configuration
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13714 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-12-22 02:21:25 +00:00
jow
bcab48e4d5 package/base-files: allow ipv6 routes without gateway specified
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13419 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-11-28 22:45:16 +00:00
nbd
a0accd105e fix up the network ifname in the network state when receiving iface/ifup events
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13399 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-11-28 16:18:11 +00:00
nbd
f479350b0c fix ifup (no longer use the to-be-reverted state of the previous config)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13398 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-11-28 16:13:23 +00:00
jow
b80bf0c001 Prevent "SIOCSIFHWADDR: Device or resource busy" when trying to change mac address
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13258 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-11-17 10:47:02 +00:00
nico
445c5eeabd make network config script work with brctl from both bridge-utils & busybox
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13165 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-11-09 22:48:56 +00:00
thepeople
f45cb578c9 remove /tmp/resolv.conf.auto when ifup -a is called so that any old dns servers no longer in the config get cleared
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13082 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-10-29 20:31:14 +00:00
nbd
3f95a4242b don't bring down interfaces when preparing them
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13079 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-10-29 17:26:59 +00:00
nbd
9909f72e6f use pidfiles for hostapd/wpa_supplicant instead of killing all processes when bringing an interface down - fixes an issue with random hostapd death
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13078 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-10-29 17:26:49 +00:00
nbd
76193c6241 make sure that the dhcp client (or other processes necessary to get a connection) gets restarted when the wifi is restarted
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13026 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-10-23 01:07:35 +00:00
nbd
71b1c2cbf3 add option in sysupgrade to restore config from file or URL (patch from #4043)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12772 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-28 19:45:59 +00:00
nbd
8f1f5d8522 fix typo from last sysupgrade commit
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12715 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-26 08:58:43 +00:00
thepeople
d8ef8d0af9 add switch to not save configuration over the reflash in noninteractive mode
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12714 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-26 00:10:01 +00:00
nbd
fcb62b7607 install missing busybox symlinks for sysupgrade (patch by Frédéric Moulins)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12695 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-25 11:31:35 +00:00
nbd
8b0d8253f3 don't emit ifup hotplug events on dhcp renew - use a new iface hotplug type 'update' instead; fixes #3906
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12671 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-23 17:29:22 +00:00
nico
4052ceaa24 make links to statup scripts in /etc/rc.d relative
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12659 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-23 12:35:34 +00:00
nbd
498cc73e51 fix sysupgrade support for brcm-2.4 and brcm47xx
make mtd refresh based config append optional (leave enabled on x86)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12657 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-23 11:05:54 +00:00
thepeople
32e00e020b make option name optional
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12585 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-13 00:08:39 +00:00
nbd
4e9554bdfe sysupgrade: add optional delay before rebooting
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12572 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-12 19:51:30 +00:00
cyrus
bdbfc90b0b Prevent unwanted shell expansion
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12568 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-11 12:23:20 +00:00
blogic
96e18cd32c fixes script that mounts usd storage when it gets attached
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12548 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-08 09:30:57 +00:00
blogic
a3cec29a22 fixes usb storage mounting
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12465 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-01 17:42:35 +00:00
nbd
977d04101f fix a race condition which would leave dnsmasq in infinite resolving recursion nirvana
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12424 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-28 14:10:55 +00:00
blogic
f773249a7a fixes broken if-then in led init script
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12411 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-27 20:33:13 +00:00
florian
e2ed54aba7 Use busybox mount, could be overriden to use util-linux-ng for instance, thanks sn9
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12386 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-25 05:21:42 +00:00
nbd
97501ba110 upgrade to uci 0.5.0, adds list handling support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12353 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-20 15:38:51 +00:00
nico
20b66117aa disable ipv6 systcl call, as ipv6 is not enabled by default
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12351 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-20 15:29:11 +00:00
blogic
8a1e72be0a fixes variables, oops
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12344 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-20 11:45:23 +00:00
blogic
6279cc1ca5 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
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12343 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-20 11:17:40 +00:00
nbd
18e4940bcb enable TCP ECN by default (see #3001 for more information)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12334 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-17 13:01:59 +00:00
thepeople
75806cb4b0 add /etc/firewall.user to be backed up becuase it is an example in /etc/config/firewall
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12326 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-16 18:01:18 +00:00
thepeople
39788de806 remove /etc/firewall.* from being kept as they no longer are used in trunk
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12320 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-16 16:04:51 +00:00
thepeople
d5dc9a9087 make opkg the default package manager, disable busybox ipkg from building by default
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12319 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-16 06:35:14 +00:00
florian
d5249b218d Fix negative calculation of the tmpfs for devices with few RAM (#3557)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12315 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-14 22:21:35 +00:00
blogic
a0745cadd4 remove /etc/functions.sh call from led hotplug script
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12312 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-14 19:07:22 +00:00
nbd
9fb77da451 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


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12241 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-07 15:28:48 +00:00
cyrus
4d7ce1f5ca added support for the timer-trigger to uci LED support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12236 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-07 11:01:46 +00:00
mbm
cba027e9e2 allow ctrl-c to trigger preinit
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12231 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-07 07:17:03 +00:00
blogic
3070019b68 add uci led support
- /etc/config/system can hold led info which is applied at boot
- adds /sbin/led.sh to set/clear leds via a name defined in /etc/config/system



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12104 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-04 22:56:46 +00:00
blogic
1cc41c8808 work aroung error message during boot if swapon is nt installed
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12087 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-04 08:50:16 +00:00
nbd
78fa722e25 network scripts: revert the network state after running ifdown, not before
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12081 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-03 21:00:01 +00:00
nbd
8ed5dc9445 use the same hotplug2 parameters for initramfs and regular
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12059 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-01 03:09:20 +00:00
nbd
53f7e4a36b move the hotplug2 kill command from preinit to /etc/init.d/boot, so that it works for initramfs as well
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12058 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-01 03:01:42 +00:00
nbd
1f75fe411e avoid duplicate vlan add events
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12057 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-01 03:01:25 +00:00
nbd
3e5a9940c6 fix config_clear(), see #3054
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12036 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-31 03:04:32 +00:00
nbd
81de0abd55 link default routes added by the network scripts to the appropriate interface (#2621)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12027 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-30 22:49:25 +00:00
nbd
e49ecf1adf network scripts: properly maintain the network state's list of assigned interfaces
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12026 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-30 22:39:56 +00:00
nbd
54988ba6a2 functions.sh: add list_contains function for checking whether a list contains a specific element
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12025 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-30 22:39:43 +00:00
nbd
097b27145d functions.sh: add a function for removing an item from a list in a shell variable
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12024 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-30 20:35:22 +00:00
nbd
0448c53b0d properly keep track of bridged interfaces in the network state
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12004 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-30 05:22:02 +00:00
agb
9e2f5f52c9 [ipkg] Move packages lists to the ramdisk to save flash space
- Lists now stored in /var/ipkg-lists/, `ipkg update' must be run after each
   boot before packages can be installed from feeds

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11982 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-29 03:36:23 +00:00
thepeople
61ab9d0406 keep /etc/group over reflash as well
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11919 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-24 16:36:39 +00:00
thepeople
ef4d7f6cd3 add dropbear keys, passwd and firewall configuration to be saved during reflash
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11912 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-24 02:24:59 +00:00
nico
f2260a8a85 fix variable names in tests
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11911 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-22 21:19:05 +00:00
thepeople
727db54052 fix sysupgrade endian issues
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11900 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-22 01:11:30 +00:00
ymano
32f358d6ff Revert previous bad commit r11512
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11513 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-06-16 19:37:00 +00:00
ymano
ed4d6c7f42 Add the PS3 specific utility bl-option, a helper sctipt
to get and set bootloader options in flash memory.

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11512 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-06-16 19:14:13 +00:00
blogic
2964b01abc system now knows which timezone it is in
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11445 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-06-11 19:59:16 +00:00
blogic
171e1e3acd use default gateway for routes that have no gw specified, Signed off by: Brian J. Murrell
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11380 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-06-06 18:49:23 +00:00
nbd
d110b89b7b fix sysupgrade 'do_upgrade: not found' error
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11362 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-06-04 23:20:56 +00:00
matteo
722c752a01 create /etc/fstab on boot (closes #3458)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11225 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-05-20 19:02:19 +00:00
matteo
d903cbcd5d fix some wrong paths
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11217 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-05-19 22:08:46 +00:00
rwhitby
9dfc3e092d base-files: Update /etc/init.d/fstab with new location of swapon and swapoff (they moved from /sbin to /usr/sbin)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11157 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-05-17 00:13:05 +00:00
ralph
91e083bf47 adding check for /proc/net/vlan/config (==vlan enabled kernel)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11132 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-05-13 09:21:17 +00:00
blogic
6ee2982652 revert borked commit
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11038 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-05-03 20:28:13 +00:00
blogic
2049a7e3a6 make etrax serial driver register its device nodes, so we get a console
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11037 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-05-03 20:12:43 +00:00
nbd
4e1db00174 initramfs: start one hotplug2 for coldplugging and one for handling events between coldplug and end of /init
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10930 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-04-23 16:20:46 +00:00
nbd
67ea4e32af use the right hotplug2 invocation for initramfs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10928 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-04-23 14:28:13 +00:00
juhosg
54af0ced73 [package] base-files: fix a typo
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10927 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-04-23 14:19:35 +00:00
nbd
263af2cd58 This patch re-adds the udev and hotplug2 initialization fixes originally
present in /init but was removed when some code was moved from /init to
/etc/preinit in rev 10870. This adds udev initialization and only handles
hotplug2 initialization when hotplug2 is present.

Signed-off-by: Yuji Mano <yuji.mano@am.sony.com>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10912 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-04-22 19:22:05 +00:00
matteo
a57da010e1 assign names to filesystems when mounting virtual ones (closes #3340)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10903 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-04-21 18:08:05 +00:00
nbd
16ddb9350a remove some redundant code
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10870 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-04-20 03:24:43 +00:00
matteo
0938cd3031 fix swap{on,off} path
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10863 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-04-19 14:36:01 +00:00
thepeople
c435eff562 fix restart on platforms without a setup_switch()
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10846 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-04-15 16:29:49 +00:00
thepeople
6704630008 add missing include in restart
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10794 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-04-12 14:57:47 +00:00
nbd
c8c1a02da5 fix use of uci_set_state in network scripts (thx, netprince)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10763 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-04-07 16:02:50 +00:00
matteo
5e1f0b5bb0 fix typo(2) in watchdog init script
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10727 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-04-03 21:01:16 +00:00
matteo
6604aa7c98 fix typo in watchdog init script
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10726 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-04-03 20:59:18 +00:00
florian
8b820a5355 Start the watchdog daemon if a harware watchdog is present
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10721 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-04-03 14:36:10 +00:00
nbd
fd00f35a4f fix interface enumeration issues related to /var/state/network (thx to fish for debugging this)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10715 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-04-02 21:27:28 +00:00
florian
72dff34c99 Make the syslog ring-buffer size configurable (#3204)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10557 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-03-07 10:44:13 +00:00
florian
a30db55ac8 Fix typo
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10544 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-03-04 15:50:41 +00:00
florian
bad699e8c2 Also call setup_switch on network restart
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10540 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-03-02 14:56:13 +00:00
thepeople
5520f49b60 remove the packages repo as it is not compatable with trunk
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10537 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-02-29 02:41:39 +00:00
nbd
b079d40fb7 add an extra safety check
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10389 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-02-05 01:47:47 +00:00
nbd
afa5da1d1b Here comes the new UCI. Enjoy :)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10367 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-02-03 06:48:15 +00:00
blogic
be6fa77dfb make the system have a daemon user by default
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10293 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-01-28 18:16:00 +00:00
blogic
57f5643ac3 add generic gpio char dev for CONFIG_GENERIC_GPIO archs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10261 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-01-26 03:16:11 +00:00
nbd
f90cb20b9a missing optional parameters for restart and boot functions
Add missing optional parameters in remaining rc functions.
It fixes my previous implementation of parametrized rc functions [8106],
ticket #3063, thanks argovela-at-yahoo-com for reporting.

Signed-off-by: Lubos Stanek (lubek) <lubek@lubek.name>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10245 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-01-25 10:59:40 +00:00
nbd
82d2ff5e3f add uci_set_default (to be used in init scripts or /etc/uci-defaults)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10086 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-01-02 17:10:16 +00:00
nbd
ed0067022d refactor hotplug2 rules, make sure that the default button rule is only used during the init (should fix #2772)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9644 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-12-01 17:08:04 +00:00
nbd
bb7ec42ea8 fix ppp issues (thanks to Fatus for debugging this)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9634 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-11-30 09:43:05 +00:00
nbd
8dc03d7740 drop the '0' default in config_get_bool
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9618 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-11-28 19:02:46 +00:00