summaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc/functions.sh
Commit message (Collapse)AuthorAgeFilesLines
* [package] base-files: we don't need /etc/functions.sh symlink anymoreluka2012-12-201-1/+0
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34802 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package/base-files: move /etc/functions.sh to /lib/functions.shnico2011-11-081-320/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28857 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] block-mount base-files: Added additional check to pi_include to ↵cshore2011-04-051-6/+10
| | | | | | ensure that 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. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26479 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base/block-extroot, base/block-mount: Modified preinit and ↵cshore2010-09-231-0/+21
| | | | | | | | | | | | | | | | | | 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! git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23110 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: introduce service_kill() into functions.sh - a ↵jow2010-09-191-0/+17
| | | | | | convenience wrapper for killing services by pid or pidfile with a grace period for termination before kill git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23087 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files, uci: properly revert list state on config_loadjow2010-08-141-0/+1
| | | | | | | | This fixes a bug where lists end up with duplicate values if config_load was invoked multiple times. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22629 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add missing argument to debug/mount wrappers (thx, matteo)nbd2009-12-091-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18718 3c298f89-4303-0410-b956-a3cf2f4a3e73
* do not start multiple subshells for applying /etc/uci-defaults. use sh -x ↵nbd2009-12-091-2/+2
| | | | | | for hush compatibility git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18717 3c298f89-4303-0410-b956-a3cf2f4a3e73
* functions.sh: use functions instead of aliases for the debug, mount wrappers ↵nbd2009-12-091-2/+7
| | | | | | - hush does not have aliases git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18715 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: port functions.sh to new config_getnbd2009-08-071-2/+2
| | | | | | Signed-off-by: Malte S. Stretz <mss@apache.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17156 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: allow default value for config_getnbd2009-08-071-6/+9
| | | | | | | Signed-off-by: Malte S. Stretz <mss@apache.org> Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17155 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Use busybox mount, could be overriden to use util-linux-ng for instance, ↵florian2008-08-251-0/+1
| | | | | | thanks sn9 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12386 3c298f89-4303-0410-b956-a3cf2f4a3e73
* upgrade to uci 0.5.0, adds list handling supportnbd2008-08-201-1/+34
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12353 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix config_clear(), see #3054nbd2008-07-311-2/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12036 3c298f89-4303-0410-b956-a3cf2f4a3e73
* functions.sh: add list_contains function for checking whether a list ↵nbd2008-07-301-0/+9
| | | | | | contains a specific element git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12025 3c298f89-4303-0410-b956-a3cf2f4a3e73
* functions.sh: add a function for removing an item from a list in a shell ↵nbd2008-07-301-0/+14
| | | | | | variable git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12024 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add an extra safety checknbd2008-02-051-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10389 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Here comes the new UCI. Enjoy :)nbd2008-02-031-36/+22
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10367 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add uci_set_default (to be used in init scripts or /etc/uci-defaults)nbd2008-01-021-0/+6
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10086 3c298f89-4303-0410-b956-a3cf2f4a3e73
* drop the '0' default in config_get_boolnbd2007-11-281-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9618 3c298f89-4303-0410-b956-a3cf2f4a3e73
* support true and false in config_get_boolnbd2007-09-191-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8840 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add patch from #2111nbd2007-07-221-2/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8106 3c298f89-4303-0410-b956-a3cf2f4a3e73
* move uci_load into config_load so that changes can be applied via uci ↵mbm2007-07-111-8/+21
| | | | | | without commiting git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7927 3c298f89-4303-0410-b956-a3cf2f4a3e73
* some shell variable handling fixesnbd2007-06-151-3/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7638 3c298f89-4303-0410-b956-a3cf2f4a3e73
* allow config_* and uci_* functions to work on files outside of /etc/config - ↵nbd2007-06-151-1/+5
| | | | | | these files are assumed to use commands generated by uci_* only (as overlay to regular config files) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7636 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Check for modules.d existence before loading modulesflorian2007-05-311-2/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7423 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add jffs2_mark_erase function for erasing jffs2 partitions on the next mount ↵nbd2007-04-161-0/+10
| | | | | | (typically faster than doing mtd erase manually) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6978 3c298f89-4303-0410-b956-a3cf2f4a3e73
* allow scripts to disable config callbacksnbd2007-04-111-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6934 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rename uci-update.awk to uci.awk and add a few config_* functionsnbd2007-03-241-1/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6666 3c298f89-4303-0410-b956-a3cf2f4a3e73
* nuke mdev and replace it with hotplug2 :)nbd2007-03-041-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6512 3c298f89-4303-0410-b956-a3cf2f4a3e73
* make find_mtd_part work without devfsnbd2007-03-021-1/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6466 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add support for static routes - based on the patch from #1365nbd2007-03-021-1/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6457 3c298f89-4303-0410-b956-a3cf2f4a3e73
* move config_get_bool from /sbin/wifi to /etc/functions.shnbd2007-02-271-0/+11
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6407 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Integrate basic UCI config file validation supportnbd2007-02-261-18/+19
| | | | | | | | | Needs more testing and validation is not enforced yet Code contributed by Fraunhofer Fokus git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6391 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix a typonbd2007-01-291-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6228 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add a variable to keep track of the list of sections when loading uci config ↵nbd2006-12-201-4/+21
| | | | | | files. add a function to iterate through sections git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5870 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix sed error installing kmod ipkgsmbm2006-11-231-1/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5629 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rename default/ to files/nbd2006-11-221-0/+149
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5622 3c298f89-4303-0410-b956-a3cf2f4a3e73