aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/lib/functions.sh
Commit message (Collapse)AuthorAgeFilesLines
...
* base-files: move uci_apply_defaults() to /etc/init.d/bootFelix Fietkau2014-04-071-11/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40408
* /lib/functions.sh: remove hotplug_dev()Felix Fietkau2014-04-071-4/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40406
* /lib/functions.sh: remove strtok()Felix Fietkau2014-04-071-26/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40405
* /lib/functions.sh: move preinit related functions to /lib/functions/preinit.shFelix Fietkau2014-04-071-85/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40404
* /lib/functions.sh: remove pi_include()Felix Fietkau2014-04-071-24/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40403
* /lib/functions.sh: remove jffs2_ready()Felix Fietkau2014-04-071-7/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40402
* /lib/functions.sh: remove support for non-overlayfs overlay fopivot typesFelix Fietkau2014-04-071-44/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40401
* base-files: fix mount-utils incompatibilityJohn Crispin2013-12-271-11/+11
| | | | | | Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk> SVN-Revision: 39169
* base-files: allow users to delect debug level during bootJohn Crispin2013-11-251-0/+20
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38909
* base-files: add macaddr_canonicalize helper functionGabor Juhos2013-11-141-1/+34
| | | | | | | | | | | | | | | | | | | | | | | | In commit r38690, the MAC address canonicalization has been converted to use 'tr' instead of 'printf'. This only works if with MAC addresses which uses the 'xx:xx:xx:xx:xx:xx' format. However on some boards, the MAC addresses are stored in different format in the mtd partition. Some vendors are using hyphens or dots as separators instead of colons. Also the leading zeroes may be missing from the individual octets or those are replaced with spaces. Add a new function which can be used to convert these into the 'xx:xx:xx:xx:xx:xx' format. Also update the 'mtd_get_mac_ascii' function to use the new helper. The helper function is based on this code: http://isquared.nl/blog/2010/08/11/Bash-function-to-canonicalize-MAC-addresses/ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38803
* base-files: mtd_get_mac_ascii bugfixGabor Juhos2013-11-081-4/+3
| | | | | | | | | | | | | | | | The mtd_get_mac_ascii utility function was broken. This fixes it. - Remove the superfluous include of /lib/functions.sh. The function is already in that file so it is pointless, - only use a variable if the whole key word matches, - don't try to process the MAC address if it is empty, - use 'tr' to canonicalize the MAC address, Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us> [juhosg: add more fixes, update commit message] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38690
* base-files: add mtd_get_part_size helperGabor Juhos2013-07-201-0/+12
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 37475
* package: fix insmod on installJohn Crispin2013-06-221-0/+7
| | | | | | | | the procd changes broke the postinst insmod. Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 37015
* base-files: module loading is now handled by ubox/kmodloaderJohn Crispin2013-06-211-7/+0
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 37003
* base-files: minor cosmetic corrections for functions.shGabor Juhos2013-02-171-6/+3
| | | | | | | | | | | | | - update copyright header - remove superfluous shebang left-over from changeset 34794 - unify function declaration [juhosg: keep Vertical Communications' copyright notice] Signed-off-by: Michael Heimpold <mhei@heimpold.de> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 35646
* base-files: add macaddr_{add,2bin,setbit_la} helpersGabor Juhos2013-02-161-0/+24
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 35614
* base-files: add mtd_get_mac_{ascii,binary} helpersGabor Juhos2013-02-161-0/+34
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 35612
* base-files: Fix a typo in config_list_foreachSteven Barth2012-12-271-1/+1
| | | | SVN-Revision: 34893
* merge /lib/functions/boot.sh and /lib/functions.shMirko Vogt2012-12-191-0/+137
| | | | SVN-Revision: 34794
* Do not overload mount-call - trying to reduce confusionMirko Vogt2012-12-191-3/+0
| | | | | | | | | | | The behaviour of calling 'mount' differed depending on whether it called the busybox-mount, the mount of util-linux, the mount defined in /lib/functions.sh and /lib/functions/boot.sh /etc/preinit even included /lib/functions.sh and /lib/functions/boot.sh, both re-defining 'mount'. SVN-Revision: 34792
* base-files: add mtd_find_chardev helperGabor Juhos2012-12-121-3/+17
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 34648
* Revert "remove function find_mtd_part() from /lib/functions.sh"Mirko Vogt2012-12-121-0/+9
| | | | | | | | | Reverting commit 34641. Function find_mtd_part() is needed by some scripts deployed for certain targets but not including boot.sh after all. Still, all this certainly needs some love. SVN-Revision: 34642
* remove function find_mtd_part() from /lib/functions.shMirko Vogt2012-12-121-9/+0
| | | | | | | | | Since all scripts using this function include /lib/functions/boot.sh - where this function is defined as well - it can be dropped from /lib/functions.sh. Also avoids further confusion about this function being declared and defined in two different places. SVN-Revision: 34641
* base-files: make user_add() populate the shadow db as wellJo-Philipp Wich2012-06-051-0/+1
| | | | SVN-Revision: 32063
* base-files: rename internal variables in config_foreach to make namespace ↵Felix Fietkau2012-04-211-4/+4
| | | | | | conflicts more unlikely SVN-Revision: 31431
* base-files: split service related functions off to /lib/functions/service.shFelix Fietkau2012-03-201-128/+0
| | | | SVN-Revision: 31042
* base-files: remove trailing whitespaces from lib/functions.shGabor Juhos2012-03-021-10/+10
| | | | SVN-Revision: 30775
* package/base-files: enhance service functionsNicolas Thill2011-11-121-13/+27
| | | | | | | | * allow matching process by name (useful for processes changing it) * check if first argument is executable * fix function name used in error messages SVN-Revision: 28991
* package/base-files: /lib/functions.sh: add {group,user}_{add,exists} functionsNicolas Thill2011-11-091-0/+37
| | | | SVN-Revision: 28871
* package/base-files: /lib/functions.sh: let service_stop exit early if no ↵Nicolas Thill2011-11-081-1/+1
| | | | | | matching process to stop where found SVN-Revision: 28870
* package/base-files: enhance & cleanup service wrappersNicolas Thill2011-11-081-26/+40
| | | | | | | | | * add service_check function for checking if a process is alive * add service_signal for sending arbitrary signals to a process * change service_stop to send a TERM signal first, wait for the process to die and send a KILL signal if it doen't * have service_kill print a warning on STDERR stating it has been deprecated SVN-Revision: 28865
* package/base-files: move service* functions from /etc/rc.common to ↵Nicolas Thill2011-11-081-0/+82
| | | | | | /lib/functions.sh SVN-Revision: 28864
* package/base-files: move /etc/functions.sh to /lib/functions.shNicolas Thill2011-11-081-0/+320
SVN-Revision: 28857