summaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc/functions.sh
Commit message (Collapse)AuthorAgeFilesLines
* package/base-files: move /etc/functions.sh to /lib/functions.shNicolas Thill2011-11-081-320/+1
| | | | SVN-Revision: 28857
* block-mount base-files: Added additional check to pi_include to ensure that ↵Daniel Dickinson2011-04-051-6/+10
| | | | | | a directory used with pi_include actually contains files matching the souring pattern because if not the shell dies due to an empty string in for statement. Added /lib/functions/fsck as an empty dir to block-mount. This combination fixes a warning which generates a lot of bug reports, without panicking the kernel like the last attempt. SVN-Revision: 26479
* base/block-extroot, base/block-mount: Modified preinit and block-extroot and ↵Daniel Dickinson2010-09-231-0/+21
| | | | | | | | 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: introduce service_kill() into functions.sh - a convenience ↵Jo-Philipp Wich2010-09-191-0/+17
| | | | | | wrapper for killing services by pid or pidfile with a grace period for termination before kill SVN-Revision: 23087
* base-files, uci: properly revert list state on config_load This fixes a bug ↵Jo-Philipp Wich2010-08-141-0/+1
| | | | | | where lists end up with duplicate values if config_load was invoked multiple times. SVN-Revision: 22629
* add missing argument to debug/mount wrappers (thx, matteo)Felix Fietkau2009-12-091-2/+2
| | | | SVN-Revision: 18718
* do not start multiple subshells for applying /etc/uci-defaults. use sh -x ↵Felix Fietkau2009-12-091-2/+2
| | | | | | for hush compatibility SVN-Revision: 18717
* functions.sh: use functions instead of aliases for the debug, mount wrappers ↵Felix Fietkau2009-12-091-2/+7
| | | | | | - hush does not have aliases SVN-Revision: 18715
* base-files: port functions.sh to new config_getFelix Fietkau2009-08-071-2/+2
| | | | | | Signed-off-by: Malte S. Stretz <mss@apache.org> SVN-Revision: 17156
* base-files: allow default value for config_getFelix Fietkau2009-08-071-6/+9
| | | | | | | Signed-off-by: Malte S. Stretz <mss@apache.org> Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 17155
* Use busybox mount, could be overriden to use util-linux-ng for instance, ↵Florian Fainelli2008-08-251-0/+1
| | | | | | thanks sn9 SVN-Revision: 12386
* upgrade to uci 0.5.0, adds list handling supportFelix Fietkau2008-08-201-1/+34
| | | | SVN-Revision: 12353
* fix config_clear(), see #3054Felix Fietkau2008-07-311-2/+3
| | | | SVN-Revision: 12036
* functions.sh: add list_contains function for checking whether a list ↵Felix Fietkau2008-07-301-0/+9
| | | | | | contains a specific element SVN-Revision: 12025
* functions.sh: add a function for removing an item from a list in a shell ↵Felix Fietkau2008-07-301-0/+14
| | | | | | variable SVN-Revision: 12024
* add an extra safety checkFelix Fietkau2008-02-051-1/+1
| | | | SVN-Revision: 10389
* Here comes the new UCI. Enjoy :)Felix Fietkau2008-02-031-36/+22
| | | | SVN-Revision: 10367
* add uci_set_default (to be used in init scripts or /etc/uci-defaults)Felix Fietkau2008-01-021-0/+6
| | | | SVN-Revision: 10086
* drop the '0' default in config_get_boolFelix Fietkau2007-11-281-1/+1
| | | | SVN-Revision: 9618
* support true and false in config_get_boolFelix Fietkau2007-09-191-2/+2
| | | | SVN-Revision: 8840
* add patch from #2111Felix Fietkau2007-07-221-2/+4
| | | | SVN-Revision: 8106
* move uci_load into config_load so that changes can be applied via uci ↵Mike Baker2007-07-111-8/+21
| | | | | | without commiting SVN-Revision: 7927
* some shell variable handling fixesFelix Fietkau2007-06-151-3/+3
| | | | SVN-Revision: 7638
* allow config_* and uci_* functions to work on files outside of /etc/config - ↵Felix Fietkau2007-06-151-1/+5
| | | | | | these files are assumed to use commands generated by uci_* only (as overlay to regular config files) SVN-Revision: 7636
* Check for modules.d existence before loading modulesFlorian Fainelli2007-05-311-2/+4
| | | | SVN-Revision: 7423
* add jffs2_mark_erase function for erasing jffs2 partitions on the next mount ↵Felix Fietkau2007-04-161-0/+10
| | | | | | (typically faster than doing mtd erase manually) SVN-Revision: 6978
* allow scripts to disable config callbacksFelix Fietkau2007-04-111-2/+2
| | | | SVN-Revision: 6934
* rename uci-update.awk to uci.awk and add a few config_* functionsFelix Fietkau2007-03-241-1/+5
| | | | SVN-Revision: 6666
* nuke mdev and replace it with hotplug2 :)Felix Fietkau2007-03-041-1/+1
| | | | SVN-Revision: 6512
* make find_mtd_part work without devfsFelix Fietkau2007-03-021-1/+3
| | | | SVN-Revision: 6466
* add support for static routes - based on the patch from #1365Felix Fietkau2007-03-021-1/+4
| | | | SVN-Revision: 6457
* move config_get_bool from /sbin/wifi to /etc/functions.shFelix Fietkau2007-02-271-0/+11
| | | | SVN-Revision: 6407
* Integrate basic UCI config file validation support Needs more testing and ↵Felix Fietkau2007-02-261-18/+19
| | | | | | | | validation is not enforced yet Code contributed by Fraunhofer Fokus SVN-Revision: 6391
* fix a typoFelix Fietkau2007-01-291-1/+1
| | | | SVN-Revision: 6228
* add a variable to keep track of the list of sections when loading uci config ↵Felix Fietkau2006-12-201-4/+21
| | | | | | files. add a function to iterate through sections SVN-Revision: 5870
* fix sed error installing kmod ipkgsMike Baker2006-11-231-1/+2
| | | | SVN-Revision: 5629
* rename default/ to files/Felix Fietkau2006-11-221-0/+149
SVN-Revision: 5622