| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Bug: https://bugs.gentoo.org/889922
Bug: https://bugs.gentoo.org/893290
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Signed-off-by: Sam James <sam@gentoo.org>
|
|
|
|
|
|
|
|
| |
Attempt to wrap ip commands with a netns would fail sometimes when
there is no netns defined. This fixes to not use the variable when
it is not needed.
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds initial support for network namespaces. An interface can be
assigned to a network namespace with `netns_${IFACE}`. The script will
move the interface to the namespace if it is not already there.
This adds a helper functions to `functions.sh` called `_netns`, this
function facilitates scripts working withing network namespaces. It
allows eching to sysfs etc files, globbing, and arbitrary commands
within a network namespace.
This uses a wrapper for the `ip` command so all calls to it will add
`-n ${netns}` so it's operating in the netns. Basic interface
configuration is tested and working.
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
|
|
|
|
| |
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
|
|
|
| |
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
|
|
|
|
|
|
| |
POSIX shells do not provide a substitution operation ${..//..}
Negated character classes are marked by [!..] and not [^..] in POSIX.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
|
|
|
|
|
|
|
|
| |
Use /run directly, instead of /var/run, for starting any internal
daemons. This allows netifrc to earlier, before /var is available.
X-Gentoo-Bug: 545364
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=545364
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
|
|
|
|
|
|
|
|
|
| |
Support RFC3442 (DHCP classless static routes).
Thanks to Jack Suter <gentoo-bugs@suter.io>.
X-Gentoo-Bug: 524156
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=524156
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
|
|
|
| |
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
|\
| |
| | |
fix https://bugs.gentoo.org/show_bug.cgi?id=536758
|
| |
| |
| |
| | |
The shill version of shell_var is not correctly escaping vars
|
|\ \
| | |
| | | |
Miscellaneous fixes
|
| |/
| |
| |
| | |
This is undefined in POSIX.
|
| |
| |
| |
| | |
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
|/
|
|
|
|
|
| |
Fix the check for OpenRC so that it actually matches whether it's
running under OpenRC.
Reported-By: Patrick McLean <chutzpah@gentoo.org>
|
| |
|
| |
|
| |
|
|
|