Jo-Philipp Wich
6a3cbba92e
base-files: add a coldplug_interface_* hook to bring up non-hotpluggable interfaces on boot
...
SVN-Revision: 21389
2010-05-06 19:50:22 +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
Felix Fietkau
f9591d229a
base-files: do not bring up wlan interfaces from hotplug events, so that wrong network/wireless configs are more noticeable
...
SVN-Revision: 21379
2010-05-05 15:56:58 +00:00
Vasilis Tsiligiannis
a481cafb55
base-files: Remove redundant stopping of watchdog
...
busybox watchdog applet should stop the watchdog before shutting down
SVN-Revision: 21341
2010-05-03 10:56:58 +00:00
Florian Fainelli
20da5f495f
add stop() to watchdog init script, patch from Yury Polyanskiy
...
SVN-Revision: 21334
2010-05-03 09:05:35 +00:00
Florian Fainelli
1847940688
Fix bug in foregrounding in /etc/init.d/rcS
...
Not using the config_xxx functions correctly. Amended.
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
SVN-Revision: 20928
2010-04-16 18:14:08 +00:00
Florian Fainelli
eafa2ec962
option to allow boot to run to completion before starting shell
...
Setting the system variable "foreground" to yes causes the system to run
the init scripts in series and wait for completion.
This is useful if (a) you don't want the user getting into the console
until the system is initialized, or (b) you have things going on in your
scripts that require strict ordering (and no possible race conditions).
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
SVN-Revision: 20841
2010-04-13 19:57:25 +00:00
Felix Fietkau
c82bcb2a29
fix jffs2 and mini_fo mount in failsafe (patch from #7134 )
...
SVN-Revision: 20838
2010-04-13 14:24:58 +00:00
Florian Fainelli
135c4b8d05
add debugging entry to hotplug config
...
This is useful for seeing what devices are detected by the system.
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
SVN-Revision: 20785
2010-04-10 18:35:14 +00:00
Vasilis Tsiligiannis
a1e4c66c16
base-files: Use hotplug2 to download firmware
...
SVN-Revision: 20683
2010-04-03 18:21:02 +00:00
Jo-Philipp Wich
10c00a6368
base-files: also regenerate wifi config if existing config contains only whitespace
...
SVN-Revision: 20669
2010-04-03 13:31:59 +00:00
Vasilis Tsiligiannis
043b77a460
base-files: Cancel firmware loading if file doesn't exist
...
SVN-Revision: 20649
2010-04-01 15:22:13 +00:00
Nicolas Thill
b34bba25d2
base-files: fix shell syntax (prevent error messages when activating initscripts in IB)
...
SVN-Revision: 20571
2010-03-29 03:58:17 +00:00
Jo-Philipp Wich
63f49e43e6
base-files: add a hotplug handler for rdate
...
SVN-Revision: 20518
2010-03-27 17:13:33 +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
3ab30b486f
base-files: reload switch settings on /etc/init.d/network start as well
...
SVN-Revision: 20232
2010-03-15 14:02:49 +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
71886caf3f
firstboot: detect mtd, rom & jffs parts first, fix jffs mounted test
...
SVN-Revision: 19980
2010-03-05 00:53:51 +00:00
Travis Kemen
32f6e6c44d
revert r19964 for now, there are issues with opkg/ipkg.py generating the status db
...
SVN-Revision: 19970
2010-03-04 02:42:23 +00:00
Travis Kemen
249d48a68e
grab all config files for installed packages, closes #3718
...
SVN-Revision: 19964
2010-03-03 18:19:19 +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
Felix Fietkau
bfeb96126d
add the block-mount package by Daniel Dickinson (cshore), replacing existing automount functionality
...
SVN-Revision: 19877
2010-02-26 22:45:39 +00:00
Jo-Philipp Wich
2e0d14f9c2
base-files: add /dev/hvcX to hotplug common rules
...
SVN-Revision: 19608
2010-02-12 18:57:01 +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
Travis Kemen
9e5844fda2
Here is LVM support for OpenWRT. It introduces 3 new packages: - kmod-dm for the device mapper kernel module. - kmod-libdevmapper for the device-mapper library. - kmod-lvm2 for the lvm tool. Note that it currently does not create the symlinks for all the lvm tools, so you have to use lvm pvs rather than just pvs. Thanks Stefan Monnier
...
SVN-Revision: 19595
2010-02-12 01:37:02 +00:00
Lars-Peter Clausen
275b0d8cd4
Don't do lazy unmounting of filessystems at reboot/poweroff. It is unneeded and could couse a broken filesystem if unmounting takes to long. Thanks to Peter Wagner
...
SVN-Revision: 19568
2010-02-09 18:07:36 +00:00
Jo-Philipp Wich
520ea8e5f9
base-files: fix udhcpc address acquisition on network restart (patch by Scott Dudley)
...
SVN-Revision: 19530
2010-02-05 07:57:07 +00:00
Felix Fietkau
19555b702e
/sbin/wifi: improve reliability of restarts by resetting the state properly
...
SVN-Revision: 19495
2010-02-02 02:19:10 +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
10ec4fa292
when rebooting, use lazy umounts as fallback (patch by puchu)
...
SVN-Revision: 19429
2010-01-30 18:17:57 +00:00
Felix Fietkau
541725ce18
stop syslogd before rebooting, otherwise umount might not work properly when logging to a file (thx, puchu)
...
SVN-Revision: 19428
2010-01-30 18:17:52 +00:00
Felix Fietkau
d46a32fa60
when rebooting, stop the network interfaces last (just before umount) to allow services to shut down properly (thx, puchu)
...
SVN-Revision: 19427
2010-01-30 18:17:48 +00:00
Felix Fietkau
a254a9ff08
base-files: do not warn about nonexistant sysctl overrides (some of them are config dependent)
...
SVN-Revision: 19375
2010-01-29 02:17:11 +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
Felix Fietkau
62d7bb6ecd
fix a typo in the hwmode handling in /sbin/wifi (thx, maddes)
...
SVN-Revision: 19313
2010-01-24 14:27:27 +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
3634de3b80
base-files: try to activate hotplugged partitions as swap and fall back to lazy mount ( #6517 )
...
SVN-Revision: 19300
2010-01-23 21:58:01 +00:00
Jo-Philipp Wich
bf9917d651
base-files: disable bridge firewalling by default
...
SVN-Revision: 19214
2010-01-18 05:38:44 +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
Jo-Philipp Wich
cb30b52ec1
base-files, mac80211 ( #6491 ) - fix wep key handling in iw with mac80211 based drivers - sanitize keys where necessary - put a procedure prepare_key_wep() into /sbin/wifi for use by other driver backends
...
SVN-Revision: 19118
2010-01-13 18:39:44 +00:00
Felix Fietkau
8ec79b460c
run led init after /etc/init.d/done to keep the configured led settings active after the system has finished booting Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>
...
SVN-Revision: 19050
2010-01-06 02:34:20 +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
91a8f2334a
add missing argument to debug/mount wrappers (thx, matteo)
...
SVN-Revision: 18718
2009-12-09 17:13:16 +00:00
Felix Fietkau
889532d1fd
do not start multiple subshells for applying /etc/uci-defaults. use sh -x for hush compatibility
...
SVN-Revision: 18717
2009-12-09 15:15:25 +00:00
Felix Fietkau
f1649982e2
functions.sh: use functions instead of aliases for the debug, mount wrappers - hush does not have aliases
...
SVN-Revision: 18715
2009-12-09 13:36:43 +00:00
Felix Fietkau
4ab57b9e0f
fix firmware loading broken by the busybox upgrade
...
SVN-Revision: 18705
2009-12-08 20:04:38 +00:00
Felix Fietkau
e39038f688
mount debugfs by default
...
SVN-Revision: 18502
2009-11-23 20:35:05 +00:00
Jo-Philipp Wich
4d9b1d6c75
base-files: sysupgrade: restrict find command to plain files to avoid duplicates when generating the conffiles tgz archive
...
SVN-Revision: 18455
2009-11-20 23:02:35 +00:00
Felix Fietkau
e9aa394113
remove obsolete uci validation awk code
...
SVN-Revision: 18110
2009-10-20 21:48:40 +00:00
Felix Fietkau
e69a6f1b82
base-files: remove obsolete stuff from common.awk
...
SVN-Revision: 18109
2009-10-20 21:45:57 +00:00
Jo-Philipp Wich
cfe1bc11ad
base-files: only try to execute watchdog if binary is present
...
SVN-Revision: 18102
2009-10-20 17:07:08 +00:00
Felix Fietkau
8183d10d17
check for sysfs before bypassing normal hotplug calls for firmware events ( fixes #5200 )
...
SVN-Revision: 17839
2009-10-03 11:28:02 +00:00
Jo-Philipp Wich
f44e4dcb4b
base-files: add hotplug rules for /dev/lpX ( #863 )
...
SVN-Revision: 17792
2009-09-28 20:05:50 +00:00
Felix Fietkau
2da13936e9
firstboot: add support for union mounts
...
SVN-Revision: 17778
2009-09-27 22:56:21 +00:00
Felix Fietkau
0f9f23aebe
base-files: move firstboot to /sbin
...
SVN-Revision: 17775
2009-09-27 22:56:11 +00:00
Nicolas Thill
6478e24f7d
accommodate for 5 digits svn revisions :)
...
SVN-Revision: 17670
2009-09-22 03:05:45 +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
Jo-Philipp Wich
bc37b2e831
base-files: dispatch ifdown events for proto=none interfaces and fix a race condition between revert state and hotplug handlers
...
SVN-Revision: 17582
2009-09-14 16:14:27 +00:00
Jo-Philipp Wich
8962270fec
base-files: add /etc/rc.local to the default save file list
...
SVN-Revision: 17572
2009-09-12 15:57:31 +00:00
Jo-Philipp Wich
bdaeaafbef
base-files: introduce a ready-to-use /etc/rc.local to let users run custom commands on init without creating custom init scripts
...
SVN-Revision: 17571
2009-09-11 21:35:03 +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
Gabor Juhos
f494bcc222
package/base-files: set state to 'preinit' before preinit.arch is used, and set state to 'failsafe' when entering failsafe mode
...
SVN-Revision: 17517
2009-09-05 18:44:48 +00:00
Felix Fietkau
7d67818ab1
Revert "add ifup -a to boot(), closes #4543 #2781" (r17515) Hotpluggable interfaces are already brought up before /etc/init.d/network boot and this change can break them, if the ifup -a command runs at the wrong time, also starts many interfaces twice, which can lead to issues with PPPoE.
...
SVN-Revision: 17516
2009-09-05 13:05:59 +00:00
Travis Kemen
1776830e64
add ifup -a to boot(), closes #4543 #2781
...
SVN-Revision: 17515
2009-09-05 05:33:23 +00:00
Travis Kemen
4c47562a37
extend logging functions
...
SVN-Revision: 17514
2009-09-04 21:09:13 +00:00
Felix Fietkau
6155fdf5d3
preinit: fix failsafe mode through ctrl+c on devices that do not provide a preinit.arch file
...
SVN-Revision: 17470
2009-09-02 15:14:53 +00:00
Geoff Levand
525d86686e
udev: Update udev package from udev-106 to udev-142
...
Update the init scripts have to use udevadm where appropriate.
The udev package no longer provides separate udev utilities
like udevtrigger and udevsettle. These have been incorporated
into the udev admin program udevadm.
Replace the udevextras sub package with config options to the udev
package.
Update the preinit script to check for '/lib/udev/devices', and
copy it to '/dev/ if it is found, then to conditionaly setup
/dev the old way with mknod etc. Udev now recommends using
the directory '/lib/udev/devices' to initialize the '/dev'
directory at startup.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
SVN-Revision: 17378
2009-08-24 20:19:26 +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
Felix Fietkau
7c32f45749
base-files: clean up init.d/fstab and port it to the new config_get
...
... also remove the unused noauto variable in swapon.
Signed-off-by: Malte S. Stretz <mss@apache.org>
SVN-Revision: 17159
2009-08-07 00:08:01 +00:00
Felix Fietkau
ae0745e240
base-files: port init.d/led to new config_get
...
... and don't call logger directly, rcS takes care of the correct redirection
Signed-off-by: Malte S. Stretz <mss@apache.org>
SVN-Revision: 17158
2009-08-07 00:07:56 +00:00
Felix Fietkau
2892e2f1d5
base-files: port init.d/boot to new config_get
...
... and localize some variables.
Signed-off-by: Malte S. Stretz <mss@apache.org>
SVN-Revision: 17157
2009-08-07 00:07:51 +00:00
Felix Fietkau
387b221aa1
base-files: port functions.sh to new config_get
...
Signed-off-by: Malte S. Stretz <mss@apache.org>
SVN-Revision: 17156
2009-08-07 00:07:46 +00:00
Felix Fietkau
4dbaccf0cd
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>
SVN-Revision: 17155
2009-08-07 00:07:42 +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
Florian Fainelli
de3a491240
simplify action handling in rc.common ( #5558 )
...
SVN-Revision: 17012
2009-07-26 12:34:09 +00:00
Vasilis Tsiligiannis
e5b097425d
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>
SVN-Revision: 16815
2009-07-12 15:38:04 +00:00
Felix Fietkau
7a576b004e
allow udhcpc to work properly for interfaces that are not configured through uci
...
SVN-Revision: 16664
2009-07-03 22:12:40 +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
19c12174ee
base-files: ipcalc.sh: fix off-by-one in range-calculation
...
SVN-Revision: 16619
2009-06-29 11:35:33 +00:00
Felix Fietkau
038807906f
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)
...
SVN-Revision: 16499
2009-06-17 21:57:07 +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
Felix Fietkau
d196e4087e
udhcpc: add cidr routes support (patch from #5299 )
...
SVN-Revision: 16433
2009-06-13 14:42:47 +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
Hamish Guthrie
590f3042fb
Removed extra ; in exec rule
...
SVN-Revision: 16243
2009-06-01 08:48:37 +00:00
Florian Fainelli
0be2193e40
fix drivers firmware loading with the new hotplug2, patch from Russell Senior
...
SVN-Revision: 16231
2009-05-31 12:08:15 +00:00
Gabor Juhos
9b5e65f101
base-files: set rules file for hotplug2 in the boot script ( closes #5235 )
...
SVN-Revision: 16215
2009-05-30 17:09:41 +00:00
Gabor Juhos
463a6f4bda
base-files: update command line for the new hotplug2
...
SVN-Revision: 16154
2009-05-28 18:48:54 +00:00
Jo-Philipp Wich
2ee67f7272
base-files: fixup resolv.conf check in udhcpc script
...
SVN-Revision: 15903
2009-05-17 17:56:26 +00:00
Nicolas Thill
06413b783e
base-files: initialize GZIPED to 0 in sysupgrade since it's used later in numeric comparisons
...
SVN-Revision: 15890
2009-05-17 11:54: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
33c38fba27
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
...
SVN-Revision: 15753
2009-05-10 15:53:02 +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
7da25b844c
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>
SVN-Revision: 15683
2009-05-07 13:51:45 +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
Jo-Philipp Wich
ca609a2431
base-files: replace udhcpc script with an improved version
...
SVN-Revision: 15635
2009-05-06 12:51:12 +00:00
Felix Fietkau
cbd52550bd
rcS: wait for init scripts to complete before initiating the shutdown (patch from #5032 )
...
SVN-Revision: 15530
2009-04-30 22:59:18 +00:00
Jo-Philipp Wich
1c41493d74
base-files: make diag.sh stub working in bash
...
SVN-Revision: 15527
2009-04-30 21:00:57 +00:00
Nicolas Thill
2fdeecdb47
add an explicit 'sysinit' tag for logging initscripts output, instead of '' that was logged as is
...
SVN-Revision: 15323
2009-04-21 12:02:34 +00:00
Jo-Philipp Wich
f40eaba4df
fix broken logic in r15272, r15273
...
SVN-Revision: 15274
2009-04-19 17:12:02 +00:00
Jo-Philipp Wich
b0ea64c211
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
...
SVN-Revision: 15272
2009-04-19 16:51:58 +00:00
Felix Fietkau
34939cad39
get rid of $Id$ - it has never helped us and it has broken too many patches ;)
...
SVN-Revision: 15242
2009-04-17 14:09:46 +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
a03e00bbcf
base-files: remove redundant netmask handling in 10-routes
...
SVN-Revision: 15219
2009-04-12 16:39:29 +00:00
Hauke Mehrtens
90fc200a60
In wifi_fixup_hwmode the value 11bg for hwmode was not transfered to bg.
...
SVN-Revision: 15180
2009-04-09 20:16:01 +00:00
Felix Fietkau
cf152cff39
tweak some sysctl values for better performance
...
SVN-Revision: 15129
2009-04-07 02:51:04 +00:00
Felix Fietkau
de0332f86a
rename our /bin/login script to /bin/login.sh to avoid collisions with busybox - we always use -l on telnetd anyway
...
SVN-Revision: 15097
2009-04-04 09:35:55 +00:00
Felix Fietkau
714ffa3260
fix failsafe mode
...
SVN-Revision: 15096
2009-04-04 09:35:49 +00:00
Felix Fietkau
6a50bf433a
udhcpc: run dhcp hotplug events after dns has been set
...
SVN-Revision: 15095
2009-04-04 07:07:25 +00:00
Felix Fietkau
ca749bea97
wifi: fix hostapd + autochannel
...
SVN-Revision: 15055
2009-03-27 21:14:59 +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
Michael Büsch
20b5626363
Allow running without "logger" installed
...
SVN-Revision: 14938
2009-03-18 13:05:18 +00:00
Michael Büsch
088ea2fb6e
Support configurations without syslogd/klogd.
...
SVN-Revision: 14937
2009-03-18 12:20:21 +00:00
Felix Fietkau
11cf9ea728
move input device nodes to /dev/input
...
SVN-Revision: 14809
2009-03-09 15:06:15 +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
Hauke Mehrtens
3ac154fc9c
On shutdown disabled every mounted swap device. Fixes #4721 Thanks to Angel Marin
...
SVN-Revision: 14770
2009-03-07 12:58:08 +00:00
Jo-Philipp Wich
2d672ef2f5
base-files: allow option dns to override dhcp assigned dns servers
...
SVN-Revision: 14562
2009-02-19 05:27:36 +00:00
Florian Fainelli
1716050f0c
allow specifying port where to log ( #2019 )
...
SVN-Revision: 14396
2009-02-03 20:26:00 +00:00
Jose Vasconcellos
58b8cdb5fd
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.
...
SVN-Revision: 14289
2009-01-30 20:48:42 +00:00
Florian Fainelli
b065bc5310
increase default size of the connection tracking table, thanks Marc
...
SVN-Revision: 14283
2009-01-30 14:13:09 +00:00
Felix Fietkau
6d27b16e2b
fix $HOME in /etc/profile ( #4424 )
...
SVN-Revision: 13914
2009-01-07 04:38:57 +00:00
Jo-Philipp Wich
341c1dbdf5
package/base-files: fix chmod of /tmp/.uci, bump package revision
...
SVN-Revision: 13903
2009-01-06 21:53:45 +00:00
Jo-Philipp Wich
1cdaa2d3dc
allow ipv4 routes without gateway in configuration
...
SVN-Revision: 13714
2008-12-22 02:21:25 +00:00
Jo-Philipp Wich
7c4f0fcbe7
package/base-files: allow ipv6 routes without gateway specified
...
SVN-Revision: 13419
2008-11-28 22:45:16 +00:00
Felix Fietkau
5cc72a2874
fix up the network ifname in the network state when receiving iface/ifup events
...
SVN-Revision: 13399
2008-11-28 16:18:11 +00:00
Felix Fietkau
7ac69660fe
fix ifup (no longer use the to-be-reverted state of the previous config)
...
SVN-Revision: 13398
2008-11-28 16:13:23 +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
Travis Kemen
6103f88358
remove /tmp/resolv.conf.auto when ifup -a is called so that any old dns servers no longer in the config get cleared
...
SVN-Revision: 13082
2008-10-29 20:31:14 +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
a4f11ca22e
use pidfiles for hostapd/wpa_supplicant instead of killing all processes when bringing an interface down - fixes an issue with random hostapd death
...
SVN-Revision: 13078
2008-10-29 17:26:49 +00:00
Felix Fietkau
c0e753bcdc
make sure that the dhcp client (or other processes necessary to get a connection) gets restarted when the wifi is restarted
...
SVN-Revision: 13026
2008-10-23 01:07:35 +00:00
Felix Fietkau
2b2884293a
add option in sysupgrade to restore config from file or URL (patch from #4043 )
...
SVN-Revision: 12772
2008-09-28 19:45:59 +00:00
Felix Fietkau
e2daafdb1d
fix typo from last sysupgrade commit
...
SVN-Revision: 12715
2008-09-26 08:58:43 +00:00
Travis Kemen
3770c99cf8
add switch to not save configuration over the reflash in noninteractive mode
...
SVN-Revision: 12714
2008-09-26 00:10:01 +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
35b92f0c99
don't emit ifup hotplug events on dhcp renew - use a new iface hotplug type 'update' instead; fixes #3906
...
SVN-Revision: 12671
2008-09-23 17:29:22 +00:00
Nicolas Thill
7218e6326f
make links to statup scripts in /etc/rc.d relative
...
SVN-Revision: 12659
2008-09-23 12:35:34 +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
Travis Kemen
91d3e6b05b
make option name optional
...
SVN-Revision: 12585
2008-09-13 00:08:39 +00:00
Felix Fietkau
22585e578b
sysupgrade: add optional delay before rebooting
...
SVN-Revision: 12572
2008-09-12 19:51:30 +00:00
Steven Barth
5a4e88710b
Prevent unwanted shell expansion
...
SVN-Revision: 12568
2008-09-11 12:23:20 +00:00
John Crispin
6eefb5071d
fixes script that mounts usd storage when it gets attached
...
SVN-Revision: 12548
2008-09-08 09:30:57 +00:00
John Crispin
38516cd780
fixes usb storage mounting
...
SVN-Revision: 12465
2008-09-01 17:42:35 +00:00
Felix Fietkau
2176ae1a6f
fix a race condition which would leave dnsmasq in infinite resolving recursion nirvana
...
SVN-Revision: 12424
2008-08-28 14:10:55 +00:00
John Crispin
12df593510
fixes broken if-then in led init script
...
SVN-Revision: 12411
2008-08-27 20:33:13 +00:00
Florian Fainelli
1673462564
Use busybox mount, could be overriden to use util-linux-ng for instance, thanks sn9
...
SVN-Revision: 12386
2008-08-25 05:21:42 +00:00
Felix Fietkau
8a08f95e42
upgrade to uci 0.5.0, adds list handling support
...
SVN-Revision: 12353
2008-08-20 15:38:51 +00:00
Nicolas Thill
257ee32b7d
disable ipv6 systcl call, as ipv6 is not enabled by default
...
SVN-Revision: 12351
2008-08-20 15:29:11 +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
f27fd2ecc3
enable TCP ECN by default (see #3001 for more information)
...
SVN-Revision: 12334
2008-08-17 13:01:59 +00:00
Travis Kemen
b3b5e54099
add /etc/firewall.user to be backed up becuase it is an example in /etc/config/firewall
...
SVN-Revision: 12326
2008-08-16 18:01:18 +00:00
Travis Kemen
0b2111d1fb
remove /etc/firewall.* from being kept as they no longer are used in trunk
...
SVN-Revision: 12320
2008-08-16 16:04:51 +00:00
Travis Kemen
99dd3e13fc
make opkg the default package manager, disable busybox ipkg from building by default
...
SVN-Revision: 12319
2008-08-16 06:35:14 +00:00
Florian Fainelli
38d1cb8cbd
Fix negative calculation of the tmpfs for devices with few RAM ( #3557 )
...
SVN-Revision: 12315
2008-08-14 22:21:35 +00:00
John Crispin
3403cbe948
remove /etc/functions.sh call from led hotplug script
...
SVN-Revision: 12312
2008-08-14 19:07:22 +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
Steven Barth
6b6d027172
added support for the timer-trigger to uci LED support
...
SVN-Revision: 12236
2008-08-07 11:01:46 +00:00
Mike Baker
1139608784
allow ctrl-c to trigger preinit
...
SVN-Revision: 12231
2008-08-07 07:17:03 +00:00
John Crispin
72396bd614
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
...
SVN-Revision: 12104
2008-08-04 22:56:46 +00:00
John Crispin
b73eedd62b
work aroung error message during boot if swapon is nt installed
...
SVN-Revision: 12087
2008-08-04 08:50:16 +00:00
Felix Fietkau
8ff90e326e
network scripts: revert the network state after running ifdown, not before
...
SVN-Revision: 12081
2008-08-03 21:00:01 +00:00
Felix Fietkau
aee15469df
use the same hotplug2 parameters for initramfs and regular
...
SVN-Revision: 12059
2008-08-01 03:09:20 +00:00
Felix Fietkau
37c7e13a5f
move the hotplug2 kill command from preinit to /etc/init.d/boot, so that it works for initramfs as well
...
SVN-Revision: 12058
2008-08-01 03:01:42 +00:00
Felix Fietkau
d98002bd59
avoid duplicate vlan add events
...
SVN-Revision: 12057
2008-08-01 03:01:25 +00:00
Felix Fietkau
6a4edcadc1
fix config_clear(), see #3054
...
SVN-Revision: 12036
2008-07-31 03:04:32 +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
ee56e9ec59
network scripts: properly maintain the network state's list of assigned interfaces
...
SVN-Revision: 12026
2008-07-30 22:39:56 +00:00
Felix Fietkau
8c453b693c
functions.sh: add list_contains function for checking whether a list contains a specific element
...
SVN-Revision: 12025
2008-07-30 22:39:43 +00:00
Felix Fietkau
4d883da9bf
functions.sh: add a function for removing an item from a list in a shell variable
...
SVN-Revision: 12024
2008-07-30 20:35:22 +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
Andy Boyett
2ddbb426c8
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
...
SVN-Revision: 11982
2008-07-29 03:36:23 +00:00
Travis Kemen
0425daa86d
keep /etc/group over reflash as well
...
SVN-Revision: 11919
2008-07-24 16:36:39 +00:00
Travis Kemen
f20dd0803c
add dropbear keys, passwd and firewall configuration to be saved during reflash
...
SVN-Revision: 11912
2008-07-24 02:24:59 +00:00
Nicolas Thill
a760ff5861
fix variable names in tests
...
SVN-Revision: 11911
2008-07-22 21:19:05 +00:00
Travis Kemen
7346ef83e1
fix sysupgrade endian issues
...
SVN-Revision: 11900
2008-07-22 01:11:30 +00:00
Yuji Mano
0b5f602421
Revert previous bad commit r11512
...
SVN-Revision: 11513
2008-06-16 19:37:00 +00:00
Yuji Mano
5ee48c0b00
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>
SVN-Revision: 11512
2008-06-16 19:14:13 +00:00
John Crispin
0bf765b362
system now knows which timezone it is in
...
SVN-Revision: 11445
2008-06-11 19:59:16 +00:00
John Crispin
51b28d44a9
use default gateway for routes that have no gw specified, Signed off by: Brian J. Murrell
...
SVN-Revision: 11380
2008-06-06 18:49:23 +00:00