summaryrefslogtreecommitdiffstats
path: root/package/base-files/files/lib/functions
Commit message (Collapse)AuthorAgeFilesLines
* base-files: various enhancements to network.shJo-Philipp Wich2012-12-161-30/+153
| | | | | | | | | | | - support reading inactive gateways and DNS information in network_get_gateway(), network_get_dnsserver() and network_get_dnssearch() by passing "true" as optional last argument - internally cache fetched values to speed up subsequent accesses to the same data, introduce network_flush_cache() to clear them - add some inline function documentation SVN-Revision: 34722
* base-files: remove route enabled check in lib/functions/network.sh after ↵Jo-Philipp Wich2012-09-131-4/+2
| | | | | | netifd bump SVN-Revision: 33391
* base-files: uci-defaults for rssiledsGabor Juhos2012-08-131-0/+44
| | | | | | | | Adds capability to add uci-defaults defining RSSI LEDs Signed-off-by: Daniel Golle <dgolle@allnet.de> SVN-Revision: 33164
* base-files: implement network_get_dnsserver() and network_get_dnssearch() in ↵Jo-Philipp Wich2012-06-291-0/+31
| | | | | | /lib/functions/network.sh SVN-Revision: 32531
* base-files: only consider enabled default routes when finding the wan iface ↵Jo-Philipp Wich2012-06-291-2/+4
| | | | | | (#11774) SVN-Revision: 32525
* base-files: implement network_get_gateway(), network_get_gateway6(), ↵Jo-Philipp Wich2012-06-171-0/+59
| | | | | | network_find_wan() and network_find_wan6() in /lib/functions/network.sh SVN-Revision: 32397
* base-files: implement network_defer_device() and network_ready_device() ↵Jo-Philipp Wich2012-06-071-0/+16
| | | | | | wrappers for upcoming netifd iface deferring support SVN-Revision: 32106
* base-files: add LED specific functions to /lib/functions/uci-defaultsGabor Juhos2012-05-291-0/+98
| | | | SVN-Revision: 31991
* base-files: add network_is_up()Jo-Philipp Wich2012-05-291-0/+6
| | | | SVN-Revision: 31978
* base-files: let network_get_device() return the l3 interface, introduce ↵Jo-Philipp Wich2012-05-291-4/+6
| | | | | | network_get_physdev() to obtain the underlying iface (if applicable) SVN-Revision: 31960
* base-files: add network_get_device() to network.shJo-Philipp Wich2012-05-281-0/+15
| | | | SVN-Revision: 31937
* base-files: introduce /lib/functions/network.sh This file will contain ↵Jo-Philipp Wich2012-05-281-0/+41
| | | | | | common procedures to deal with network interfaces. Initially provides network_get_ipaddr(), network_get_ipaddr6(), network_get_subnet() and network_get_subnet6() to determine the primary IP addresses or subnets of a given logical interface. SVN-Revision: 31935
* base-files: split service related functions off to /lib/functions/service.shFelix Fietkau2012-03-201-0/+129
| | | | SVN-Revision: 31042
* base-files: remove trailing whitespaces from lib/functions/boot.shGabor Juhos2012-03-021-4/+4
| | | | SVN-Revision: 30776
* base-files: add lib/functions/uci-defaults.shGabor Juhos2011-12-011-0/+88
| | | | SVN-Revision: 29384
* base-files: add initial support for mounting overlayfsFelix Fietkau2011-03-171-1/+3
| | | | SVN-Revision: 26207
* boot.sh: Tabs are used for indent. Also use tabs in jffs2_ready()Michael Büsch2011-02-201-4/+4
| | | | SVN-Revision: 25635
* base-files: Add "-o noatime" to mount wrapperMichael Büsch2011-02-201-1/+1
| | | | | | noatime is cheaper than default relatime. SVN-Revision: 25634
* Fix permissions for /etc and other dirs after clean flash (#6039)Jo-Philipp Wich2010-11-071-1/+1
| | | | | | | | | | | | | | | 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
* base/block-extroot, base/block-mount: Modified preinit and block-extroot and ↵Daniel Dickinson2010-09-231-21/+56
| | | | | | | | 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
* base-files: Add function pi_include the /lib/functions/boot.sh used by ↵Daniel Dickinson2010-09-191-0/+13
| | | | | | 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
* base-files: fix a preinit hang in jffs2_ready() when no rootfs_data ↵Jo-Philipp Wich2010-05-201-0/+1
| | | | | | partition is found (#7362) SVN-Revision: 21511
* change from /jffs to /overlay, patch from Daniel DickinsonFlorian Fainelli2010-03-211-2/+1
| | | | SVN-Revision: 20356
* base-files: force preinit to use busybox mount (#6797)Jo-Philipp Wich2010-03-131-0/+4
| | | | SVN-Revision: 20176
* add block-extroot, a package for using an external filesystem as rootfs ↵Felix Fietkau2010-02-261-0/+1
| | | | | | (patch by cshore) SVN-Revision: 19880
* add preinit modularization work by Daniel Dickinson (cshore)Felix Fietkau2010-01-251-0/+95
SVN-Revision: 19331