Commit Graph

499 Commits (3bcb16b305726048905f6cc3ab377c5977008a4d)

Author SHA1 Message Date
Jo-Philipp Wich 74ab5be3d7 base-files: remove ptbtime3 rdate server, its dead
SVN-Revision: 25479
14 years ago
Jo-Philipp Wich 8b1b99ba73 base-files: update rdate server list
SVN-Revision: 25478
14 years ago
Jo-Philipp Wich ee3a4c2ee9 base-file: cleanup ipv6 enabling in unbridge
SVN-Revision: 25473
14 years ago
Jo-Philipp Wich 875ff44592 base-files: - properly disable IPv6 on bridge ports - introduce accept_ra option, defaults to true for dhcp interfaces, false for others - introduce send_rs option, defaults to true for static interfaces, false for others
SVN-Revision: 25454
14 years ago
Jo-Philipp Wich 4e34fc521c base-files: derive lease_acquired dhcp state var from /proc/uptime
SVN-Revision: 25452
14 years ago
Vasilis Tsiligiannis d063af3fcf base-files: Add include for target specific hotplug rules
SVN-Revision: 25415
14 years ago
Michael Büsch 99c66237f0 hotplug2 rules: Run /etc/hotplug.d/firmware/ scripts (if any) on firmware load events
SVN-Revision: 25383
14 years ago
Jo-Philipp Wich 3d82109add base-files: don't stop hotplug events for ppp interfaces, similar fix like the earlier one for tun/tap interfaces
SVN-Revision: 25355
14 years ago
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
14 years ago
Vasilis Tsiligiannis bd8a1549eb base-files: Fix alsa raw audio device hotplug rule
SVN-Revision: 25301
14 years ago
Vasilis Tsiligiannis 824331a594 hotplug2: Use stricter matching for rule regular expressions
SVN-Revision: 25282
14 years ago
Vasilis Tsiligiannis 3a3d95b191 base-files: Remove deprecated hotplug2 commands, update old commands to new
SVN-Revision: 25268
14 years ago
Jo-Philipp Wich a0b2eba08c base-files: fix a typo in processing of additional dhcp request opts
SVN-Revision: 25239
14 years ago
Jo-Philipp Wich a8edd9d50e base-files: fix handling of dhcp "reqopts" option
SVN-Revision: 25237
14 years ago
Florian Fainelli d7fe921089 base-files: support port_state in led config (#6763)
Signed-off-by: Alexey Torkhov <atorkhov@gmail.com>

SVN-Revision: 25172
14 years ago
Gabor Juhos 25feec0c9c package/base-files: add get_magic_long() to common upgrade script
Patch-by: Mark Mentovai <mark@moxienet.com>

SVN-Revision: 25117
14 years ago
Jo-Philipp Wich 3b6851aa82 base-files: implement "reqopts" parameter for dhcp interfaces to specify additional dhcp options to request
SVN-Revision: 24780
14 years ago
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
14 years ago
Jo-Philipp Wich deb9661785 Âbase-files: don't mark /etc/banner as conffile
SVN-Revision: 24742
14 years ago
Gabor Juhos 63c786dde7 base-files: add support for the usbdev LED trigger
SVN-Revision: 24647
14 years ago
Felix Fietkau 5a351509aa base-files: use shutdown instead of stop when the system goes down (patch by tripolar)
SVN-Revision: 24540
14 years ago
Florian Fainelli ebe7bdba88 adds a --help option to /sbin/wifi
Signed-off-by: Sebastian Philipp <sebastian@spawnhost.de>

SVN-Revision: 24258
14 years ago
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
14 years ago
Jo-Philipp Wich a8c3d1ab6d base-files: save the connect time of interfaces in uci state
SVN-Revision: 24206
14 years ago
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
14 years ago
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
14 years ago
Jo-Philipp Wich c5711cadd3 base-files: change /dev permissions to 0755 when hotplug2 is used (#6039)
SVN-Revision: 23908
14 years ago
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
14 years ago
Jo-Philipp Wich d856ed78ad base-files: add udhcpc vendorid option (#7744)
SVN-Revision: 23279
14 years ago
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
14 years ago
Jo-Philipp Wich 978ecae685 base-files: sysupgrade: merge info from "opkg list-changed-conffiles" to backup file list
SVN-Revision: 23233
14 years ago
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
14 years ago
Jo-Philipp Wich 6bcdab79b6 base-files: prevent possible sourcing of JFFS2 meta files when merging overlay hooks
SVN-Revision: 23114
14 years ago
Daniel Dickinson b125e3f68e Fixed duplicated content in file in commit 23111
SVN-Revision: 23112
14 years ago
Daniel Dickinson 7fe34123d6 Missed file committing previous change 23110
SVN-Revision: 23111
14 years ago
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
14 years ago
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
14 years ago
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
14 years ago
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
14 years ago
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
14 years ago
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
14 years ago
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
14 years ago
Hamish Guthrie cbc8b3968c base_files: Remove . from end of localhost entry
SVN-Revision: 22508
14 years ago
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
14 years ago
Florian Fainelli 56aa129fed add txqueuelen option, patch from Roberto Riggio
SVN-Revision: 22444
14 years ago
Jo-Philipp Wich 9bf9ea9802 base-files: localize variable in do_move_devtmpfs(), remove extra temporary variable and shorten conditional
SVN-Revision: 22380
14 years ago
Alexandros C. Couloumbis 6a85a3b53b package/base-files: add support for devtmpfs (thank you rauchwolke at gmx.net)
SVN-Revision: 22379
14 years ago
Jo-Philipp Wich e1a654dd9f base-files: unconditionally unlock the rootfs_data partition (#7437)
SVN-Revision: 22377
14 years ago
Jo-Philipp Wich 1dd824a358 base-files, busybox: fix 22279, simplify code and get rid of awk
SVN-Revision: 22282
14 years ago
Daniel Dickinson 8974bc6ae2 base-files & telnet: Fixed telnet starting even with root password when shadow passwords in use.
SVN-Revision: 22279
14 years ago
Felix Fietkau 3e75044a95 wifi: fix duplicate ht capabilities in the hostapd config file by clearing the list at config load time
SVN-Revision: 22099
14 years ago
Jo-Philipp Wich 506db2a57e base-files: add "mtu" option for route sections, allows setting per-route mtu values
SVN-Revision: 22003
14 years ago
Jo-Philipp Wich ce5d644ac1 base-files: enable IPv6 forwarding by default since the default firewall supports ip6tables now
SVN-Revision: 21766
14 years ago
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
14 years ago
Jo-Philipp Wich fa244a1265 base-files: remove IPv6 LL addr from interfaces before adding them to a bridge
SVN-Revision: 21659
14 years ago
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
14 years ago
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
14 years ago
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
14 years ago
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
14 years ago
Jo-Philipp Wich 09df0523fd base-files: revert r21595
SVN-Revision: 21597
14 years ago
Jo-Philipp Wich 482b8385d2 base-files: bring bridge port iface down before changing the mac (#7111)
SVN-Revision: 21595
14 years ago
Jo-Philipp Wich 8bc961239b base-files: 3g connection interfaces are now called "3g-*" - adjust 10-net hotplug handler to match them
SVN-Revision: 21591
14 years ago
Jo-Philipp Wich c0820d3261 base-files: respect .auto option when running coldplug_interface_*() hooks on boot
SVN-Revision: 21588
14 years ago
Felix Fietkau 6df2ad3e70 when changing the mac address of a bridge interface, keep member interface addresses in sync (patch from #7111)
SVN-Revision: 21577
14 years ago
Jo-Philipp Wich d6a142375b base-files: fix a preinit hang in jffs2_ready() when no rootfs_data partition is found (#7362)
SVN-Revision: 21511
14 years ago
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
14 years ago
Jo-Philipp Wich ea06a67eac base-files: use uci_get() wrapper (#7312)
SVN-Revision: 21490
14 years ago
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
14 years ago
Jo-Philipp Wich 6a3cbba92e base-files: add a coldplug_interface_* hook to bring up non-hotpluggable interfaces on boot
SVN-Revision: 21389
14 years ago
Jo-Philipp Wich dd38b15b75 base-files, ppp: fix interface shutdown
SVN-Revision: 21386
14 years ago
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
14 years ago
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
14 years ago
Vasilis Tsiligiannis a481cafb55 base-files: Remove redundant stopping of watchdog
busybox watchdog applet should stop the watchdog before shutting down

SVN-Revision: 21341
14 years ago
Florian Fainelli 20da5f495f add stop() to watchdog init script, patch from Yury Polyanskiy
SVN-Revision: 21334
14 years ago
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
14 years ago
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
14 years ago
Felix Fietkau c82bcb2a29 fix jffs2 and mini_fo mount in failsafe (patch from #7134)
SVN-Revision: 20838
14 years ago
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
14 years ago
Vasilis Tsiligiannis a1e4c66c16 base-files: Use hotplug2 to download firmware
SVN-Revision: 20683
14 years ago
Jo-Philipp Wich 10c00a6368 base-files: also regenerate wifi config if existing config contains only whitespace
SVN-Revision: 20669
14 years ago
Vasilis Tsiligiannis 043b77a460 base-files: Cancel firmware loading if file doesn't exist
SVN-Revision: 20649
14 years ago
Nicolas Thill b34bba25d2 base-files: fix shell syntax (prevent error messages when activating initscripts in IB)
SVN-Revision: 20571
14 years ago
Jo-Philipp Wich 63f49e43e6 base-files: add a hotplug handler for rdate
SVN-Revision: 20518
14 years ago
Jo-Philipp Wich 163b15f5bb base-files: make press key message more explicit in preinit
SVN-Revision: 20392
14 years ago
Florian Fainelli 7af8ee0481 change from /jffs to /overlay, patch from Daniel Dickinson
SVN-Revision: 20356
15 years ago
Felix Fietkau 3ab30b486f base-files: reload switch settings on /etc/init.d/network start as well
SVN-Revision: 20232
15 years ago
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
15 years ago
Jo-Philipp Wich 1968fb8da3 base-files: force preinit to use busybox mount (#6797)
SVN-Revision: 20176
15 years ago
Gabor Juhos 32be7f7605 package/base-files: call preinit_ip_deconfig before processing init on initramfs images
SVN-Revision: 20159
15 years ago
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
15 years ago
Nicolas Thill 71886caf3f firstboot: detect mtd, rom & jffs parts first, fix jffs mounted test
SVN-Revision: 19980
15 years ago
Travis Kemen 32f6e6c44d revert r19964 for now, there are issues with opkg/ipkg.py generating the status db
SVN-Revision: 19970
15 years ago
Travis Kemen 249d48a68e grab all config files for installed packages, closes #3718
SVN-Revision: 19964
15 years ago
Nicolas Thill 45f7dc9459 firstboot: fix typo (closes: #6738)
SVN-Revision: 19944
15 years ago
Felix Fietkau 524303b849 base-files: fix enter failsafe message
SVN-Revision: 19937
15 years ago
Felix Fietkau 9be4598569 add block-extroot, a package for using an external filesystem as rootfs (patch by cshore)
SVN-Revision: 19880
15 years ago
Felix Fietkau bfeb96126d add the block-mount package by Daniel Dickinson (cshore), replacing existing automount functionality
SVN-Revision: 19877
15 years ago
Jo-Philipp Wich 2e0d14f9c2 base-files: add /dev/hvcX to hotplug common rules
SVN-Revision: 19608
15 years ago
Jo-Philipp Wich 250b52f673 base-files: revert dhcp state information on ifdown and restore pre-r19530 behaviour in udhcp default.script
SVN-Revision: 19597
15 years ago
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
15 years ago