Jo-Philipp Wich
79b22b246b
base-files: make the skipping of ppp interfaces in 10-net hotplug more explicit, this allows users to rely on hotplug events for ppp0 .. ppp9 interfaces spawned by other programs
...
SVN-Revision: 25354
2011-02-03 22:34:30 +00:00
Vasilis Tsiligiannis
bd8a1549eb
base-files: Fix alsa raw audio device hotplug rule
...
SVN-Revision: 25301
2011-02-02 01:23:34 +00:00
Vasilis Tsiligiannis
824331a594
hotplug2: Use stricter matching for rule regular expressions
...
SVN-Revision: 25282
2011-02-01 16:37:53 +00:00
Vasilis Tsiligiannis
3a3d95b191
base-files: Remove deprecated hotplug2 commands, update old commands to new
...
SVN-Revision: 25268
2011-01-31 22:29:31 +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
Florian Fainelli
d7fe921089
base-files: support port_state in led config ( #6763 )
...
Signed-off-by: Alexey Torkhov <atorkhov@gmail.com>
SVN-Revision: 25172
2011-01-27 21:49:46 +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
Daniel Dickinson
f93b6cb844
base-files: Fix typo in option name for disabling failsafe announcment Thanks to Andrey Zholos for this patch
...
SVN-Revision: 25040
2011-01-18 14:46:25 +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
3bd7985a0b
base-files: the busybox update to v1.15.3 completely broke udhcpc route option handling, repair default.script to work with the new format ( #6435 )
...
SVN-Revision: 24778
2010-12-22 07:07:15 +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
Gabor Juhos
63c786dde7
base-files: add support for the usbdev LED trigger
...
SVN-Revision: 24647
2010-12-17 17:10:14 +00:00
Felix Fietkau
5a351509aa
base-files: use shutdown instead of stop when the system goes down (patch by tripolar)
...
SVN-Revision: 24540
2010-12-13 08:01:21 +00:00
Florian Fainelli
ebe7bdba88
adds a --help option to /sbin/wifi
...
Signed-off-by: Sebastian Philipp <sebastian@spawnhost.de>
SVN-Revision: 24258
2010-12-05 11:22:56 +00:00
Jo-Philipp Wich
9a996248d4
base-files: derive connect_time from uptime as local system time may warp due to rdate, ntp and other means
...
SVN-Revision: 24212
2010-12-01 19:55:24 +00:00
Jo-Philipp Wich
a8c3d1ab6d
base-files: save the connect time of interfaces in uci state
...
SVN-Revision: 24206
2010-12-01 17:37:32 +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
59a3841c9c
base-files: mark libc as hold and essential, opkg should now bail out if someone tries to uninstall libc
...
SVN-Revision: 23960
2010-11-11 16:18:58 +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
cfe4db7bda
base-files: mark /etc/shadow as conffile
...
SVN-Revision: 23590
2010-10-23 15:49:04 +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
8dc04c9018
base-files: mark /etc/sysupgrade.conf as conffile
...
SVN-Revision: 23264
2010-10-05 22:08:23 +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
978ecae685
base-files: sysupgrade: merge info from "opkg list-changed-conffiles" to backup file list
...
SVN-Revision: 23233
2010-10-05 07:40:25 +00:00
Jo-Philipp Wich
a65975e0d6
base-files: mark /etc/rc.local as conffile
...
SVN-Revision: 23232
2010-10-05 07:32:37 +00:00
Jo-Philipp Wich
0fda5f7507
base-files: utilize uci_get_state to read the previous dhcp router address in udhcpc default script. The setup_switch() procedure provided by swconfig calls config_load() during network restart and thus confuses udhcpc's uci state keeping resulting in a missing default route on each second network restart. Bypass the cached state vars and query uci directly to make the script immune against unwanted runtime changes.
...
SVN-Revision: 23211
2010-10-04 00:07:07 +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
cdd98e3f3a
base-files: bump pkg revision after r23091, r23092
...
SVN-Revision: 23093
2010-09-19 15:14:42 +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
84b7b812f3
base-files: cached state vars after scan_interfaces might be out of sync when binding dhcp leases, this could lead to an unconfigured wan interface in certain circumstances. Replace config_get calls with uci_get_state
...
SVN-Revision: 23091
2010-09-19 15:04:08 +00:00
Jo-Philipp Wich
4815de3f26
base-files: introduce service_kill() into functions.sh - a convenience wrapper for killing services by pid or pidfile with a grace period for termination before kill
...
SVN-Revision: 23087
2010-09-19 14:03:32 +00:00
Jo-Philipp Wich
91118a9500
base-files: add an experimental "-c" flag which tries to preserve *all* changed files in /overlay/etc minus some system files
...
SVN-Revision: 22977
2010-09-07 22:20:26 +00:00
Jo-Philipp Wich
5949f33b06
base-files: make build dependant on opkg/host
...
SVN-Revision: 22948
2010-09-06 02:13:19 +00:00
Felix Fietkau
62c1740676
toolchain: fix the sysroot mess by getting rid of $(TOOLCHAIN_DIR)/usr and moving it back to $(TOOLCHAIN_DIR), this change makes the toolchain relocatable again, which should fix the SDK
...
SVN-Revision: 22723
2010-08-19 12:49:51 +00:00
Jo-Philipp Wich
63991ba875
base-files, uci: properly revert list state on config_load This fixes a bug where lists end up with duplicate values if config_load was invoked multiple times.
...
SVN-Revision: 22629
2010-08-14 00:45:15 +00:00
Hamish Guthrie
cbc8b3968c
base_files: Remove . from end of localhost entry
...
SVN-Revision: 22508
2010-08-06 08:00:40 +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
1dd824a358
base-files, busybox: fix 22279, simplify code and get rid of awk
...
SVN-Revision: 22282
2010-07-18 18:36:12 +00:00
Daniel Dickinson
8974bc6ae2
base-files & telnet: Fixed telnet starting even with root password when shadow passwords in use.
...
SVN-Revision: 22279
2010-07-18 15:18:38 +00:00
Felix Fietkau
3e75044a95
wifi: fix duplicate ht capabilities in the hostapd config file by clearing the list at config load time
...
SVN-Revision: 22099
2010-07-08 18:36:12 +00:00
Jo-Philipp Wich
506db2a57e
base-files: add "mtu" option for route sections, allows setting per-route mtu values
...
SVN-Revision: 22003
2010-06-30 23:46:34 +00:00
Jo-Philipp Wich
ce5d644ac1
base-files: enable IPv6 forwarding by default since the default firewall supports ip6tables now
...
SVN-Revision: 21766
2010-06-12 16:59:12 +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
c14e8be337
base-files: don't skip subsequent hotplug rules when doing makedev for tun or tap interfaces - this fixes support for uci managed OpenVPN interfaces and other externally created tuntap devices
...
SVN-Revision: 21641
2010-05-31 01:22:36 +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
Jo-Philipp Wich
8bc961239b
base-files: 3g connection interfaces are now called "3g-*" - adjust 10-net hotplug handler to match them
...
SVN-Revision: 21591
2010-05-28 00:35:54 +00:00
Jo-Philipp Wich
c0820d3261
base-files: respect .auto option when running coldplug_interface_*() hooks on boot
...
SVN-Revision: 21588
2010-05-27 23:04:56 +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
da55c9639a
base-files ( #7316 ) - improve rdate reliability - make rdate config more ntp like - move time server list to /etc/config/timeserver - bump package revision
...
SVN-Revision: 21495
2010-05-17 19:54:35 +00:00
Jo-Philipp Wich
ea06a67eac
base-files: use uci_get() wrapper ( #7312 )
...
SVN-Revision: 21490
2010-05-17 19:34:08 +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
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
Nicolas Thill
ebb5858ba8
package/base-files: fix libraries packaging on 64bits targets ( closes : #6918 )
...
SVN-Revision: 21282
2010-05-01 13:29:04 +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
Nicolas Thill
e5e0966186
package/base-files: fix typo in r20874 (thanks to rhk for spotting it)
...
SVN-Revision: 20878
2010-04-15 08:22:39 +00:00
Nicolas Thill
15542fcdd8
package/base-files: use a single $(CP) instead of two to copy shared library files
...
SVN-Revision: 20874
2010-04-15 06:01:45 +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
Gabor Juhos
785e45786f
base-files: don't build '00_preinit.conf' if CONFIG_PREINITOPT is not selected
...
Also, use the default pi_broadcast address if it is not specified
SVN-Revision: 19346
2010-01-26 14:41:26 +00:00
Felix Fietkau
f596c58ad0
fix missing quote (thx, puchu)
...
SVN-Revision: 19335
2010-01-25 23:03:53 +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
Nicolas Thill
1772df7037
base-files: check for libpthread_so.a instead of libc_so.a (some gcc/libc combinations don't provide a libpthread_so.a matching libc_so.a)
...
SVN-Revision: 18810
2009-12-18 10:32:38 +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
Imre Kaloz
c2eba9719e
neither avr32 or coldfire has a shared libgcc
...
SVN-Revision: 18402
2009-11-12 12:20:38 +00:00
Felix Fietkau
b2f4f696bf
do not relink libresolv, it makes iproute2 barf
...
SVN-Revision: 18111
2009-10-20 22:22:59 +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
cb3495fac5
fix pthread mklibs relinking by copying libpthread_so.a from uclibc instead of using the standard _pic variant
...
SVN-Revision: 18090
2009-10-20 07:26:34 +00:00
Felix Fietkau
dc637ccdff
install the right version of libgcc along with its version map to fix relinking issues with mklibs, attempt to relink only if the version map is actually present
...
SVN-Revision: 18089
2009-10-20 06:57:19 +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
Felix Fietkau
32bb31ca36
base-files: add libgcc dependency to libc ( #5262 )
...
SVN-Revision: 17714
2009-09-24 22:02:39 +00:00
Nicolas Thill
c9bc7c504c
add external toolchain support, enhance native toolchain support (special thanks to Luigi Mantellini for his help... and patience ;)
...
SVN-Revision: 17682
2009-09-23 02:27:38 +00:00
Nicolas Thill
6478e24f7d
accommodate for 5 digits svn revisions :)
...
SVN-Revision: 17670
2009-09-22 03:05:45 +00:00
Felix Fietkau
ca300a2f07
base-files: fix conffiles entry check (patch from #2425 )
...
SVN-Revision: 17618
2009-09-19 23:04:34 +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
Andy Boyett
a5f80019ef
bump some revisions and update copyrights
...
SVN-Revision: 17554
2009-09-10 10:07:04 +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
Felix Fietkau
91fe363562
uclibc: to rebuild libc.so.0, mklibs.py needs access to libc_so.a which was not exported by default. use it instead of libc_pic.a
...
SVN-Revision: 17438
2009-08-29 11:56:27 +00:00
Felix Fietkau
fc5426e4bc
allow mklibs.py to optimize libgcc_s.so.1
...
SVN-Revision: 17437
2009-08-29 03:51:43 +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
Felix Fietkau
72cf6925a4
now that each target has its own package directory, remove the base-files package renaming hack
...
SVN-Revision: 17330
2009-08-20 15:31:22 +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
907fb8d8e5
install static libraries from uclibc to the rootfs staging dir
...
SVN-Revision: 17169
2009-08-08 02:24:45 +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
52b6f8f74a
prevent rebuild issues on creation of lib64 with 64-bits targets
...
SVN-Revision: 17072
2009-08-01 10:51:19 +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
Andy Boyett
0194fea285
base-files: explicitly create /etc/rc.d/, fixes ImageBuilder when using git instead of svn
...
SVN-Revision: 16652
2009-07-02 07:24:44 +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
Imre Kaloz
2004d4165a
add preliminary coldfire v4e support
...
SVN-Revision: 16538
2009-06-21 18:34:07 +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
Felix Fietkau
17ae4a4df0
fix mips64el base-files compile
...
SVN-Revision: 16018
2009-05-23 21:16:04 +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