aboutsummaryrefslogtreecommitdiff
path: root/sh/functions.sh.in
AgeCommit message (Collapse)Author
2015-12-21Convert OpenRC to a centralized copyright/license structureWilliam Hubbs
In the past, OpenRC was a hybrid of a centralized and file-scope license/copyright structure. I followed the instructions from the Software Freedom Law Center [1] to convert to a Centralized structure where possible, for easier future maintenance. [1] https://softwarefreedom.org/resources/2012/ManagingCopyrightInformation.html
2013-11-30functions.sh: yesno: (mostly) fix eval logicMike Frysinger
We need to quote the expansion. X-Gentoo-Bug: 475032 X-Gentoo-Bug: https://bugs.gentoo.org/475032 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-02-23include BINDIR and SBINDIR in the sanitized PATHAndrew Gregory
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
2012-11-07checkbashisms: clean up export statements.Robin H. Johnson
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2012-10-17functions.sh: do not hard code path in e* wrapper functionsWilliam Hubbs
We should use the "command" shell builtin to execute a binary from within the wrapper with the same name. Hard coding the path to the binary makes our test suite fail.
2011-11-19make shell math operations style more succulentMike Frysinger
Convert the style: var=$((${var} + 1)) to: : $(( var += 1 )) The latter is easier to read imo. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-07-02slight formatting changeWilliam Hubbs
Add a new line after "rc_runlevel()" for consistency.
2011-06-29drop useless "All rights reserved" noticeMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-03fix underquoting of wrapped color stubs of exit statusMike Frysinger
X-Gentoo-Bug: 369911 X-Gentoo-Bug-URL: http://bugs.gentoo.org/369911 Reported-by: Steve Dibb <beandog@gentoo.org> Reported-by: Christian Ruppert <idl0r@gentoo.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-05-23Move non compiled libraries from /lib/rc to /libexec/rcRoy Marples
OpenRC version is now stored as plaintext in /libexec/rc/version Plugins (cursplash, splashutils) will have to be re-compiled to pickup the new directories. State data needs to be moved from /lib/rc/init.d to /libexec/rc/init.d as well.
2009-05-05Fix compile on NetBSDRoy Marples
2009-05-01Add (c) to CopyrightRoy Marples
2009-04-26Stop using needless {} in varsRoy Marples
2009-04-19Use a bashism for a minor speedup in gendepends.shRoy Marples
2008-04-21Punt is_function in favour of POSIX shell builtin command, thanks to Harald ↵Roy Marples
van Dijk for the idea.
2008-04-18We should check type output to ensure that we're really calling a shell ↵Roy Marples
function and not some badly named binary like stop from boinc, Gentoo #218063.
2008-04-08Add a silly rc_runlevel function to appease SpanKY :)Roy Marples
2008-03-27We would sanitize $RC_LIBDIR/sbin as well. If it's really needed then ↵Roy Marples
rc-functions.sh will add it back.
2008-03-27Sanitize the write rc dir.Roy Marples
2008-03-27Fix mulitlib issues.Roy Marples
2008-03-24dont leak the _e varMike Frysinger
2008-03-21More pathing fixes.Roy Marples
2008-03-20Fix pathing again.Roy Marples
2008-03-19Ensure that our path includes packages and localRoy Marples
2008-03-02Ensure that our scripts call prefixed runscript.Roy Marples
2008-02-28TypoRoy Marples
2008-02-28Support the use of PREFIX and PKG_PREFIX.Roy Marples
2008-02-27Makefile SH variable now tweaks the default shell used by our scripts.Roy Marples