diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2016-10-24 15:29:22 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2016-10-24 15:29:22 -0700 |
commit | fdf03428319c30a617edc160007fb8803d9e8158 (patch) | |
tree | e9651c417b7e5e58afcf1421b1f4d36f61d0f3ee /test | |
parent | sh/udhcpc-hook.sh: classless static routes (diff) | |
download | netifrc-fdf03428319c30a617edc160007fb8803d9e8158.tar.gz netifrc-fdf03428319c30a617edc160007fb8803d9e8158.tar.bz2 netifrc-fdf03428319c30a617edc160007fb8803d9e8158.zip |
Switch /var/run to /run.
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>
Diffstat (limited to 'test')
-rwxr-xr-x | test/src/netifrc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/src/netifrc.py b/test/src/netifrc.py index 8840583..d17a60c 100755 --- a/test/src/netifrc.py +++ b/test/src/netifrc.py @@ -25,7 +25,7 @@ from file import save as backend_save, fetch as backend_retrieve def get_mode(): - if(os.path.exists("/var/run/openrc")): + if(os.path.exists("/run/openrc")): return defaults['MODE_MASTER'] return defaults['MODE_SLAVE'] @@ -35,7 +35,7 @@ def normalize(*args): def _service_call(iface, command): - if(os.path.exists("/var/run/openrc")): + if(os.path.exists("/run/openrc")): subprocess.check_call(["rc-service", "net."+iface, command]) elif(os.path.exists("/run/systemd")): subprocess.check_call(["systemctl", command, "net@"+iface]) |