aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-10-29Use pattern rules instead of suffix rulesWilliam Hubbs
Rework the makefiles to use pattern rules instead of suffix rules. This is the preferred way to write implicit rules according to the gnu make manual.
2011-10-26Add macvlan supportStef Simoens
X-Gentoo-Bug: 384029 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=384029
2011-10-26Add support for automounting configfs and cgroupfsAlexey Shvetsov
Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>
2011-10-20further clean up OS differences in makefilesMike Frysinger
No need for if() logic. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-10-19Make variable references in Makefiles consistentWilliam Hubbs
Some variable references were written as $(foo), but the majority were written as ${foo}. This commit changes all of the variable references to using braces.
2011-10-18consolodate MakefilesWilliam Hubbs
The tree contained many operating system specific Makefiles which were being included in other Makefiles. This commit removes those and adds the code to the makefiles which included them using make's conditional processing. X-Gentoo-Bug: 387441 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=387441
2011-10-16fix random typosMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-10-16Release OpenRC-0.9.4Christian Ruppert
X-Gentoo-Bug: 382299 X-Gentoo-Bug-URL: https://bugs.gentoo.org/382299
2011-10-08Bug #385971: fix net.example referenceRobin H. Johnson
Add in wildcards for reference to net.example, so that users can find it regardless of version and dodoc compression settings. X-Gentoo-Bug: 385971 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=385971 Reported-By: Serkan Kaba <serkan@gentoo.org> Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2011-10-07net/vlan: respect txqueuelen/mac/broadcast/mtu options during creation.Robin H. Johnson
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2011-10-02Small style changeWilliam Hubbs
2011-09-27Make dmesg log optionalChristian Ruppert
Reported-by: Patrick <gentoo@feystorm.net> X-Gentoo-Bug: 384485 X-Gentoo-Bug-URL: https://bugs.gentoo.org/384485
2011-09-21Shutdown VLAN's before the actual/parent interfaceChristian Ruppert
Make sure the VLAN interfaces as well as its rules will be removed prior to the actual/parent interface. The VLAN configs are gone in vlan_post_stop() already so we have to use vlan_pre_stop() instead. Reported-by: Bernd Bednarz <bernd.bednarz@avira.com> X-Gentoo-Bug: 380603 X-Gentoo-Bug-URL: https://bugs.gentoo.org/380603
2011-09-21Refactoring of commit bf49e59e3eb4fe12167812bc1b4531742eddc383Christian Ruppert
Make sure the RPDB rules will be removed.
2011-09-21Add a new helper functions for _{flatten,get}_arrayChristian Ruppert
A new helper function (_array_helper) since both, the _flatten_array and _get_array function share partially the same code. We also reduce multiple whitespace to a single space, remove leading newlines as well as skipping "empty" lines. This makes the data returned by _{flatten,get}_array much nicer than before. It also fixes bug 366677 where net-tools having trouble with the whitespace mentioned above. iproute2 was not affected. Reported-by: Andrew Maltsev <am@ejelta.com> X-Gentoo-Bug: 366677 X-Gentoo-Bug-URL: https://bugs.gentoo.org/366677
2011-09-19Don't do anything if the interface doesn't existYun Zheng Hu
iproute2_post_stop() does now check if the network interface still exist. Reported-by: Yun Zheng Hu <hu@fox-it.com> X-Gentoo-Bug: 379575 X-Gentoo-Bug-URL: https://bugs.gentoo.org/379575
2011-09-18procfs: simplify the binfmt_misc mount checkMike Frysinger
Replace the `mountinfo` exec with a file test of the register file which we rely on later anyways. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-09-18procfs: drop nfsd mountingMike Frysinger
The dedicated nfs init.d script takes care of mounting this when necessary, and we want it there since mounting it isn't terribly useful if you can't actually start up the nfs daemons (which the nfs-utils package provides). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-09-18procfs: load config files from binfmt.d into /proc/sys/fs/binfmt_misc/registerMike Frysinger
This is a KISS version. Let's see where we go from here in terms of complexity. Maybe nowhere! X-Gentoo-Bug: 382723 X-Gentoo-Bug-URL: https://bugs.gentoo.org/382723 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-09-18runscript: simplify livecd-functions.sh loadingMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-09-18Fix the Internal Field Seperator when using ethtoolGilles Oivier
ethtool.sh didn't reset the Internal Field Seperator (IFS) properly. It now does, by storing the old IFS to OIFS, which will be used later in the for loop. It also fixes the "ethtool_ring_<if>" option. Reported-by: Alois Schmid <alois.schmid@gmx.de> X-Gentoo-Bug: 368525 X-Gentoo-Bug-URL: https://bugs.gentoo.org/368525
2011-09-17Improve missing openvpn/usermode-utilities warning messageChristian Ruppert
as OpenRC can be used on other distributions as well.
2011-09-17Parse broadcast arp responses via arping (iputils) properlyStefan Knoblich
ARP replies may/do contain two MAC addresses when using iputils's arping so we have to use the first one because it's always the "From" address - which is what we want. Thanks to Stefan Knoblich <s.knoblich@axsentis.de> for the fixed pattern. Reported-by: cl@exomail.to X-Gentoo-Bug: 379181 X-Gentoo-Bug-URL: https://bugs.gentoo.org/379181
2011-09-16Print a warning if openvpn/tunctl are missingChristian Ruppert
2011-09-12Revert "Mount /run as early as possible"Christian Ruppert
This reverts commit 5ed4d084d95608e40cb21888c18a8f381a44cd69. /run needs to be mounted after /proc.
2011-09-11Fix regex pattern for umounts during shutdownChristian Ruppert
This patch fixes the regex pattern for /lib -> /lib(32|64)? as well as the pattern for RC_SVCDIR if it contains /lib(32|64)?/. This fixes bug 381783. X-Gentoo-Bug: 381783 X-Gentoo-Bug-URL: https://bugs.gentoo.org/381783
2011-09-08release openrc-0.9.3William Hubbs
2011-09-08Credits for previous commitWilliam Hubbs
Reported-By: i.Dark_Templar <dark_templar@hotbox.ru> X-Gentoo-Bug: 381783 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=381783
2011-09-08Use the real/actual path when looking for mountsChristian Ruppert
/proc/mounts contains real/actual paths so we should do the same in mountinfo.
2011-09-08Remove unused variableChristian Ruppert
2011-09-07Use checkpath to create /run/lockWilliam Hubbs
2011-09-06Mount /run as early as possibleWilliam Hubbs
This commit moves the code that mounts /run to the earliest possible position in openrc.
2011-09-02release openrc-0.9.2William Hubbs
2011-09-02Do not ignore return code for custom script functionsFlex
X-Gentoo-Bug: 380317 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=380317
2011-09-02Mtab: fix typoWilliam Hubbs
Reported-By: Helmuth Schmelzer <des-colo@hotmail.com> X-Gentoo-Bug: 381503 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=381503
2011-09-01release openrc-0.9.1William Hubbs
2011-09-01Start-stop-daemon: remove call to pam_authenticateDiego
2011-09-01release openrc-0.9.0William Hubbs
2011-08-22Libeinfo: do not suppress ewarn() messagesWilliam Hubbs
The ewarn() function was affected by the EINFO_QUIET environment variable which lead to warning messages being suppressed. Warnings should not be suppressed. Reported-by: Hanno Boeck <hanno@gentoo.org> X-Gentoo-Bug: 380073 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=380073
2011-08-20Do not print "null" or "noop" when configuring an interfaceYun Zheng Hu
Note by william hubbs: I modified the patch to compare "null" and "noop" with $1 instead of ${config}. Reported-by: Yun Zheng Hu <hu@fox-it.com> X-Gentoo-Bug: 379577 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=379577
2011-08-20Do not update mtab if it is a symbolic linkWilliam Hubbs
Reported-by: <junkmailnotread@yahoo.com> X-Gentoo-Bug: 370037 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=370037
2011-07-31Improve processing of service directories and conf.d filesWilliam Hubbs
symbolic links should not be followed in an attempt to work out the name of the service we are running. Also, @sysconfdir@/conf.d should be tried as a backup directory for configuration files. I would like to thank Robin Johnson for his input on this change. X-Gentoo-Bug: 350910 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=350910
2011-07-28swclock: select a default reference fileWilliam Hubbs
If $RC_SVCDIR/shutdowntime does not exist, we need a default reference file. It is safe to use @PREFIX@/sbin/runscript for this purpose. Reported-By: Robin H. Johnson <robbat2@gentoo.org> X-Gentoo-Bug: 376249 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=376249
2011-07-26runscript: rename saveDir back to save to fix compile errorWilliam Hubbs
2011-07-26Runscript: print deprecation warning for opts variableWilliam Hubbs
Openrc uses the extra_commands and extra_started_commands variables to list extra commands for services. Also, it supports the opts variable which is used to assist migration from baselayout-1. I am adding this warning to encourage switching from opts to extra_commands/extra_started_commands. I would like to remove support for opts eventually.
2011-07-26mtab: fix test for a link to a location in /procWilliam Hubbs
/etc/mtab can be a link to a file in /proc. If it is, we should not attempt to update /etc/mtab. The original test used "! -w" as part of the test. This does not work since everything is writeable by root. Thanks to Robin Johnson for the suggestion of using readlink -f and the regular expression. Reported-By: junkmailnotread@yahoo.com X-Gentoo-Bug: 370037 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=370037
2011-07-23Mtab: fix typoWilliam Hubbs
2011-07-20rename save and save2 for clarityWilliam Hubbs
The names saveDir and saveLnk seem to better define how these variables are used.
2011-07-18Rewrite iproute2 addr argument parsing.Robin H. Johnson
This was originally to fix the fact that our code did not handle certain orders of arguments in conversion, but it was easier to rewrite the entire argument handling to support more options at the same time. Now supports all options documented in the ip manpage, including the IPv6-specific options that must be passed after the interface argument. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> Reported-by: Tony Vroon <chainsaw@gentoo.org> X-Gentoo-Bug: 366905 X-Gentoo-Bug-URL: https://bugs.gentoo.org/366905
2011-07-14Add warnings for the use of bash arraysWilliam Hubbs
Currently, we allow the use of bash arrays for some configuration settings. This is undocumented, so I want to remove the support from openrc. The first phase of this removal will be this commit which adds warnings to encourage people not to use bash arrays. X-Gentoo-Bug: 374875 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=374875