net.example: Fix the bridge configuration example

The example of how to configure the bridge was invalid. It showed
invalid timer settings along with turning off stp. This update shows how
to turn on stp and set the timer settings to the defaults.

Reported-by: Sergey S. Starikoff < Ikonta@yandex.ru>
X-Gentoo-Bug: 389209
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=389209
mountinfo: Do not error out if realpath fails

Reported-By: Dennis Schridde <devurandom@gmx.net>
X-Gentoo-Bug: 383333
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=383333
Deprecate the network and staticroute scripts

These scripts are not supported, and they have several major design
issues such as not being able to stop, start or allow a dependency on a
single interface.
add support for extra_stopped_commands
on_ac_power: Fix AC adapter presence recognition

On several machines, a file corresponding to AC adapter can be named
ADP1. The on_ac_power script  checked for AC*, which does not match
ADP1, so the script always considered the adapter to be off.

X-Gentoo-Bug: 380933
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=380933
Fix compile warning
Add CGroup support

X-Gentoo-Bug: 390297
X-Gentoo-Bug: http://bugs.gentoo.org/show_bug.cgi?id=390297
Change RC_CGROUP to lower case
CGroups: finish initializing the CGroup

When a CGroup is created, we need to copy cpuset.cpus and cpuset.mems
from the new group's parent into the new group before we can attach any
processes to it.
CGroups: fix group initialization

Make sure cpuset.cpus and cpuset.mems exist in the parent group before
attempting to copy them to the new group.
Add MKSTATICLIBS switch

The MKSTATICLIBS switch, which defaults to yes, controls whether or not
static libraries are built and installed.

Reported-by: Agostino Sarubbo <ago@autistici.org>
x-Gentoo-Bug: 378267
x-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=378267
CGroups: /sys/fs/cgroups should be a tmpfs

The kernel documentation states that a cgroup file system should not be
mounted here, but a tmpfs.

This also means that we should not create a group for each process, but
we should allow the user to specify which group a process should be
assigned to. The rc_cgroup variable will be used for this purpose.

For more information, see /usr/src/linux/Documentation/cgroups/cgroups.txt.
make shell math operations style more succulent

Convert the style:
	var=$((${var} + 1))
to:
	: $(( var += 1 ))

The latter is easier to read imo.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
rc: fix style around case_RC_COMMON_GETOPT

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
rc: usage: optimize help string alignment output a little

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
rc: usage: do not output non-printable short options in usage

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
CGroups: create the openrc cgroup hierarchy

Openrc will create a cgroup hierarchy called openrc which will have all
services it starts and all subsystems attached to it. If you need other
groups/hierarchies, please use libcgroup.
pass the per-interface metric to resolvconf

Reported-by: Alon Bar-Lev <alon.barlev@gmail.com>
x-Gentoo-Bug: 364907
x-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?364907
Revert "Revert "fsck: add the ability to specify mount points to check""

This reverts commit 5a3599df8a15b1212857335101c9d31fb19e87e2.

After review, I am bringing this back to the tree.
Migrate /var/lock and /var/run to /run for linux systems