37 Commits (ef97415b926f8a1b12ca60e4b36a70698d2f967f)

Author SHA1 Message Date
Nicolas Thill b6aef59ea8 package/base-files: move /etc/functions.sh to /lib/functions.sh 13 years ago
Daniel Dickinson d5542b4f59 block-mount base-files: Added additional check to pi_include to 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. 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. 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 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. 14 years ago
Felix Fietkau 91a8f2334a add missing argument to debug/mount wrappers (thx, matteo) 15 years ago
Felix Fietkau 889532d1fd do not start multiple subshells for applying /etc/uci-defaults. use sh -x for hush compatibility 15 years ago
Felix Fietkau f1649982e2 functions.sh: use functions instead of aliases for the debug, mount wrappers - hush does not have aliases 15 years ago
Felix Fietkau 387b221aa1 base-files: port functions.sh to new config_get 16 years ago
Felix Fietkau 4dbaccf0cd base-files: allow default value for config_get 16 years ago
Florian Fainelli 1673462564 Use busybox mount, could be overriden to use util-linux-ng for instance, thanks sn9 16 years ago
Felix Fietkau 8a08f95e42 upgrade to uci 0.5.0, adds list handling support 16 years ago
Felix Fietkau 6a4edcadc1 fix config_clear(), see #3054 17 years ago
Felix Fietkau 8c453b693c functions.sh: add list_contains function for checking whether a list contains a specific element 17 years ago
Felix Fietkau 4d883da9bf functions.sh: add a function for removing an item from a list in a shell variable 17 years ago
Felix Fietkau 49080689d9 add an extra safety check 17 years ago
Felix Fietkau 0cf1a58282 Here comes the new UCI. Enjoy :) 17 years ago
Felix Fietkau 3b2e07b84f add uci_set_default (to be used in init scripts or /etc/uci-defaults) 17 years ago
Felix Fietkau 8977c6c20a drop the '0' default in config_get_bool 17 years ago
Felix Fietkau 6b882b579f support true and false in config_get_bool 17 years ago
Felix Fietkau 6330c58b58 add patch from #2111 18 years ago
Mike Baker 57da2d5713 move uci_load into config_load so that changes can be applied via uci without commiting 18 years ago
Felix Fietkau 5e6f8739be some shell variable handling fixes 18 years ago
Felix Fietkau 796e53414f allow config_* and uci_* functions to work on files outside of /etc/config - these files are assumed to use commands generated by uci_* only (as overlay to regular config files) 18 years ago
Florian Fainelli 5b78b9a5e7 Check for modules.d existence before loading modules 18 years ago
Felix Fietkau 45c01cae72 add jffs2_mark_erase function for erasing jffs2 partitions on the next mount (typically faster than doing mtd erase manually) 18 years ago
Felix Fietkau 30dfff4849 allow scripts to disable config callbacks 18 years ago
Felix Fietkau 7f0dd3fa45 rename uci-update.awk to uci.awk and add a few config_* functions 18 years ago
Felix Fietkau a44c286fdb nuke mdev and replace it with hotplug2 :) 18 years ago
Felix Fietkau 0ddaeaf38b make find_mtd_part work without devfs 18 years ago
Felix Fietkau 65b4654000 add support for static routes - based on the patch from #1365 18 years ago
Felix Fietkau 4215478ffe move config_get_bool from /sbin/wifi to /etc/functions.sh 18 years ago
Felix Fietkau 9405a2a6be Integrate basic UCI config file validation support Needs more testing and validation is not enforced yet 18 years ago
Felix Fietkau 1930885f90 fix a typo 18 years ago
Felix Fietkau 1d23349bea add a variable to keep track of the list of sections when loading uci config files. add a function to iterate through sections 18 years ago
Mike Baker 9cc85a562e fix sed error installing kmod ipkgs 18 years ago
Felix Fietkau 59a06c71cb rename default/ to files/ 18 years ago
Mike Baker e8c11142aa fix broken export from last commit 18 years ago
Mike Baker 5c3bf17fff avoid eval leaks 18 years ago
Felix Fietkau 398f36201b fix various variable copying bugs 18 years ago
Mike Baker faf1eba5be cleanup uci and functions.sh 18 years ago
Mike Baker 9232f4adad strtok helper function 18 years ago
Felix Fietkau 12ccb1ed73 reset CONFIG_SECTION when calling config_load 18 years ago
Felix Fietkau 4346855974 add lookup function for mtd parts 18 years ago
Felix Fietkau 343ad07ed8 remove an obsolete function 18 years ago