summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--contrib/bash-completion2
-rw-r--r--contrib/zsh-completion2
-rw-r--r--docs/netctl.profile.5.txt18
-rw-r--r--docs/netctl.special.7.txt4
-rw-r--r--src/lib/connections/README2
-rw-r--r--src/lib/globals2
7 files changed, 17 insertions, 17 deletions
diff --git a/Makefile b/Makefile
index 2a39719..03a917b 100644
--- a/Makefile
+++ b/Makefile
@@ -4,8 +4,8 @@ export VERSION = 0.4
install: install-docs
# Configuration files
- install -d $(DESTDIR)/etc/network.d/{examples,hooks,interfaces}
- install -m644 docs/examples/* $(DESTDIR)/etc/network.d/examples/
+ install -d $(DESTDIR)/etc/netctl/{examples,hooks,interfaces}
+ install -m644 docs/examples/* $(DESTDIR)/etc/netctl/examples/
# Libs
install -d $(DESTDIR)/usr/lib/network/connections
install -m644 src/lib/{8021x,globals,ip,rfkill} $(DESTDIR)/usr/lib/network/
diff --git a/contrib/bash-completion b/contrib/bash-completion
index 4ffcabd..5a2dd12 100644
--- a/contrib/bash-completion
+++ b/contrib/bash-completion
@@ -13,7 +13,7 @@ _wireless_interfaces()
_netctl_profiles()
{
- find -L /etc/network.d -maxdepth 1 -type f -not -name '.*' -not -name '*~' -not -name '*.conf' -not -name '*.service' -printf "%f\n"
+ find -L /etc/netctl -maxdepth 1 -type f -not -name '.*' -not -name '*~' -not -name '*.conf' -not -name '*.service' -printf "%f\n"
}
diff --git a/contrib/zsh-completion b/contrib/zsh-completion
index 77bf1f9..7695082 100644
--- a/contrib/zsh-completion
+++ b/contrib/zsh-completion
@@ -12,7 +12,7 @@ _wireless_interfaces() {
(( $+function[_netctl_command] )) ||
_netctl_command() {
[[ $words[1] = (start|stop|restart|switch-to|status|enable|disable|reenable) ]] &&
- compadd "${(f)$(find -L /etc/network.d -maxdepth 1 -type f -not -name '.*' -not -name '*~' -not -name '*.conf' -not -name '*.service' -printf "%f\n")}"
+ compadd "${(f)$(find -L /etc/netctl -maxdepth 1 -type f -not -name '.*' -not -name '*~' -not -name '*.conf' -not -name '*.service' -printf "%f\n")}"
}
diff --git a/docs/netctl.profile.5.txt b/docs/netctl.profile.5.txt
index 3c0ff30..efd4fb4 100644
--- a/docs/netctl.profile.5.txt
+++ b/docs/netctl.profile.5.txt
@@ -13,18 +13,18 @@ netctl.profile
DESCRIPTION
-----------
-Profiles for netctl live under '/etc/network.d/' and are plain text
-files. The files consist of variable definitions following the bash
-shell syntax and are not expected to execute any code. It is good to
-omit as much quoting as possible. For a few WPA-related variables,
-special quoting rules (see below) apply.
+Profiles for netctl live under '/etc/netctl/' and are plain text files.
+The files consist of variable definitions following the bash shell
+syntax and are not expected to execute any code. It is good to omit as
+much quoting as possible. For a few WPA-related variables, special
+quoting rules (see below) apply.
The name of the profile is the name of the file. Profile names must not
contain newlines and should not end in '.service' or '.conf'. Whenever a
-profile is read, all executable scripts in '/etc/network.d/hooks/' and
-any executable script in '/etc/network.d/interfaces/' with the name of
-the interface for the profile are sourced. For each connection type,
-there are example profile files in '/etc/network.d/examples/'.
+profile is read, all executable scripts in '/etc/netctl/hooks/' and any
+executable script in '/etc/netctl/interfaces/' with the name of the
+interface for the profile are sourced. For each connection type, there
+are example profile files in '/etc/netctl/examples/'.
AVAILABLE CONNECTION TYPES
diff --git a/docs/netctl.special.7.txt b/docs/netctl.special.7.txt
index eabb4d3..6e80d7d 100644
--- a/docs/netctl.special.7.txt
+++ b/docs/netctl.special.7.txt
@@ -26,8 +26,8 @@ netctl.service::
a profile binds to might not be available yet, when netctl.service
tries to bring a profile up. A simple, hackish, solution is to do:
--------------------------------------------------------------------
-echo "[[ -t 0 ]] || sleep 3" > /etc/network.d/interfaces/<interface>
-chmod 755 /etc/network.d/interfaces/<interface>
+echo "[[ -t 0 ]] || sleep 3" > /etc/netctl/interfaces/<interface>
+chmod 755 /etc/netctl/interfaces/<interface>
--------------------------------------------------------------------
A more concise solution is to first enable a profile through netctl
and then disable it again through systemctl:
diff --git a/src/lib/connections/README b/src/lib/connections/README
index 38ef11a..db840d6 100644
--- a/src/lib/connections/README
+++ b/src/lib/connections/README
@@ -22,7 +22,7 @@ available. The readily sourced files are:
/usr/lib/network/network
/usr/lib/network/globals
- /etc/network.d/<profile>
+ /etc/netctl/<profile>
Here, <profile> is the profile file specifying the desired network
configuration.
diff --git a/src/lib/globals b/src/lib/globals
index 51acb0d..125d04c 100644
--- a/src/lib/globals
+++ b/src/lib/globals
@@ -1,4 +1,4 @@
-PROFILE_DIR="/etc/network.d"
+PROFILE_DIR="/etc/netctl"
SUBR_DIR="/usr/lib/network"
CONN_DIR="$SUBR_DIR/connections"
STATE_DIR="/run/network"