aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-07-05Don't write into optarg, this also fixes a compiler warning.Christian Ruppert
2011-07-04eat trailing whitespaceMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-07-04Bug 373808: init.d/modules skipped certain variable combinationsRobin H. Johnson
The version iteration code missed certain combinations: KV=1.2.3.4 skips: 1.2.3, 1 KV=1.2.3 skips: 1 Simplify the code to use a loop and build the list of versions directly instead of unique variables per version component. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2011-07-02slight formatting changeWilliam Hubbs
Add a new line after "rc_runlevel()" for consistency.
2011-06-30Add --startas/-a back to the optstringChristian Ruppert
X-Gentoo-Bug: 373609 X-Gentoo-Bug-URL: https://bugs.gentoo.org/373609
2011-06-29drop useless "All rights reserved" noticeMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-28Use RC_CONF instead of the hardcoded /etc/rc.confChristian Ruppert
2011-06-28net: ccwgroup: smooth up/down processMike Frysinger
We need to bring the link up ourselves after we've properly configured the device. The common code tries to bring the link up itself, but it does so before things are configured, and so it ends up failing. When shutting down, we need to wait for the kernel to finish destroying the interface. Otherwise, when doing a restart, openrc is quick enough to tell the kernel to destroy things, but then start trying to bring it back up before the kernel has finished. X-Gentoo-Bug: 367467 X-Gentoo-Bug-URL: http://bugs.gentoo.org/367467 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-27Only print the deprecation warning for --chuid/-c when using itJoe Harvell
The deprecation warning has been printed when using the replecement functions as well, bug 373243.
2011-06-27Revert "remove functions.sh symbolic link in init.d"William Hubbs
This reverts commit f4407ac83d84e52c951b4a07640cdcad458010ea.
2011-06-27remove functions.sh symbolic link in init.dWilliam Hubbs
2011-06-24update bug reporting information in READMEWilliam Hubbs
2011-06-24localmount: make OIFS and CIFS local in stop functionKirill Elagin
X-Gentoo-Bug: 371141 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=371141
2011-06-23allow options to be passed to killall5William Hubbs
This allows options to be passed to killall5 by the killprocs script. This was added so that certain processes will not be killed during shutdown. x-Gentoo-Bug: 371625 x-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=371625
2011-06-19release openrc-0.8.3William Hubbs
2011-06-19fix comment in conf.d/consolefontWilliam Hubbs
X-Gentoo-Bug: 368277 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=368277
2011-06-18sysctl: do not make unknown keys fatalMike Frysinger
If unknown keys are found, currently sysctl would add all of its valid settings, but then leave itself marked as "stopped". Since this is not really what we want, make unknown keys a non-fatal error. Reported-by: Christian Ruppert <idl0r@gentoo.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-05Warn if deprecated commandline options are used for start-stop-daemonChristian Ruppert
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>
2011-06-03clean up gitignore filesMike Frysinger
Rather than listing explicit object files, ignore all of them in the whole tree. Also ignore patch/gdb related files throughout. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-02Don't set hostname on containers.Diego Elio Pettenò
LXC already provides a means to set the utsname/hostname of the system, so avoid overriding the user's configuration through hostname here. Signed-off-by: Diego Elio Pettenò <flameeyes@gmail.com>
2011-05-28rc-update: sort "show" outputMike Frysinger
X-Gentoo-Bug: 367305 X-Gentoo-Bug-URL: http://bugs.gentoo.org/367305 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-05-28cc.mk: move debug.mk out of end MakefilesMike Frysinger
Since we always want debug.mk whenever we include cc.mk, move the include out of the Makefiles and into cc.mk itself. This also fixes an include order bug in rc/Makefile where debug.mk is included before cc.mk and breaks the default CFLAGS setup in cc.mk. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-05-28cc.mk: enable -g by defaultMike Frysinger
Can do no harm! Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-05-28librc: tweak style: foo () -> foo()Mike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-05-28rc: delete now unused local "i" variableMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-05-23Fix dirname calls in runscriptChristian Ruppert
runscript will try to get the dir and basename of a file/link in case it contains at least one slash. This patch gives a temporary copy of the path to the dirname() function since dirname() can modify its argument.
2011-05-17fix keymaps config file to show the correct variable nameWilliam Hubbs
X-Gentoo-Bug: 367283 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=367283
2011-05-16only warn about /run if it existsMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-05-16drop rc_sys funcs from removal scheduleMike Frysinger
The automagic detection isn't really problematic, and we allow people to easily override this when detection isn't possible. On the other hand, if people haven't configured rc_sys in their rc.conf, the lack of auto detection can easily lead to an unbootable system. Further, we're attempting to have a stable shared library ABI, which dropping funcs from is not feasible. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-05-16net:bonding small style change for readabilityWilliam Hubbs
2011-05-16Do not add slaves to bond interface if they are already addedKfir Lavi
X-Gentoo-Bug: 366653 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=366653 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2011-05-16net: ccwgroup: forward port changes from baselayout-1Mike Frysinger
Quite a bit of work happened in baselayout-1 on the ccwgroup module, but seems it didn't make it into openrc. So forward port all the existing code so we can work with more than just qeth and layer2 options. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-05-11do not run services if openrc did not boot the systemWilliam Hubbs
X-Gentoo-Bug: 364159 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=364159
2011-04-27fix rc_service_extra_commands return valueJames Le Cuirot
If there were no extra commands, rc_service_extra_commands returned a list containing a single empty string. This changes that to return an empty list, which is more consistent with what you would expect. X-Gentoo-Bug: 360013 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=360013
2011-04-27fix list returned by rc_service_extra_commandsWilliam Hubbs
This function was returning the setting of the variable $opts, which is not correct. $opts was used in baselayout-1, but it is replaced by $extra_commands and $extra_started_commands in openrc. This does not appear to break backward compatibility since this function does not appear to be used anywhere in the openrc code. Thanks to James Le Cuirot for the original patch. X-Gentoo-Bug: 360013 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=360013
2011-04-26change udhcpc support to busybox udhcpcWilliam Hubbs
This updates the udhcpc support to use busybox's udhcpc instead of the stand alone version. I would like to thank jackieku <kjackie@gmail.com> for assisting with this update. X-Gentoo-Bug: 205286 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=205286
2011-04-21add back the eend command in start/stop for local serviceWilliam Hubbs
This was added back due to a user request. It will always be on a line of its ownbecause I'm considering adding more verbose info messages to local that show when each service is run if local is run with the -v option. X-Gentoo-Bug: 363343 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=363343
2011-04-19[oldnet] Bug #363959: Improve plug_timeout ifplugd/netplugd code.Robin H. Johnson
- Add support for a global plug_timeout setting to match the documentation. - Update the documentation to also show per-interface configuration. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2011-04-19fix permissions for /run/lockWilliam Hubbs
If /run/lock is a directory, set the ownership and permissions for it, whether or not we created the directory.
2011-04-18Don't unmount /run on shutdownLars Wendler
This is needed so that udev will stop properly on shutdown. X-Gentoo-Bug: 363971 X-Gentoo-Bug-Url: http://bugs.gentoo.org/show_bug.cgi?id=363971
2011-04-18Add support for /run directoryAmadeusz Żołnowski
This is a new directory for storing volatile runtime data. See https://lwn.net/Articles/436012 X-Gentoo-Bug: 363971 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=363971
2011-04-18make rc_sys system specificWilliam Hubbs
This rearranges the configuration files so it is more clear that the rc_sys setting is system specific. X-Gentoo-Bug: 363957 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=363957
2011-04-17Check for /sys/module/usbcore before modprobe usbcoreAnthony G. Basile
The use of /proc/bus/usb to mount usbfs has been deprecated, but the option is still available in the kernel. The new approach is to use /sys. We should not modprobe usbcore if either /proc/bus/usb or /sys/module/usbcore exist. X-Gentoo-Bug: 363551 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=363551 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2011-04-15release openrc-0.8.2William Hubbs
2011-04-15revert changes for bug #292894William Hubbs
This is being done because these dependency changes caused a regression. We will need to revisit the previously mentioned bug. X-Gentoo-Bug: 363693 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=363693
2011-04-14termencoding should run after bootmiscSebastian Thorarensen
This change is necessary so that the unicode flag is not erased by bootmisc. X-Gentoo-Bug: 363611 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=363611
2011-04-12release openrc 0.8.1William Hubbs
2011-04-11start loopback interface before mtabWilliam Hubbs
X-Gentoo-Bug: 292894 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=292894
2011-04-10remove "after bootmisc" dependency from loopback interfaceWilliam Hubbs