summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2013-07-25 00:22:25 +0200
committerJouke Witteveen <j.witteveen@gmail.com>2013-07-25 00:22:25 +0200
commit0f7688962fdadc7b72bdd81f719473e55608205c (patch)
tree28e19d543758bc1d224da454240ba88f995dc915 /docs
parent906c6daa8a1ab95b3e169b09a925816ebce4831c (diff)
downloadnetctl-0f7688962fdadc7b72bdd81f719473e55608205c.tar.gz
netctl-0f7688962fdadc7b72bdd81f719473e55608205c.tar.xz
Make netctl-auto more hook friendly
The hooks (including any interface hook) are loaded each time a wpa event occurs. This means the auto.action script can be extended in the hooks. For this purpose, several exported variables (mainly $ACTION) can be checked for their value. The name of the active profile is not exported, but still available (just as in ordinary netctl usage) through the $Profile variable. Profiles ending in .action are disallowed (reserved for possible future use). Both ifplugd and wpa_actiond have a notion of 'action script'.
Diffstat (limited to 'docs')
-rw-r--r--docs/netctl.profile.5.txt14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/netctl.profile.5.txt b/docs/netctl.profile.5.txt
index ec36f47..b1ccde1 100644
--- a/docs/netctl.profile.5.txt
+++ b/docs/netctl.profile.5.txt
@@ -20,13 +20,13 @@ 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/netctl/hooks/' and any
-executable script in '/etc/netctl/interfaces/' with the name of the
-interface for the profile are sourced. Declarations in an interface
-script override declarations in a profile, which override declarations
-in hooks. For each connection type, there are example profile files in
-'/etc/netctl/examples/'.
+contain newlines and should not end in '.action', '.conf', or
+'.service'. Whenever a 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. Declarations in an interface script override declarations
+in a profile, which override declarations in hooks. For each connection
+type, there are example profile files in '/etc/netctl/examples/'.
AVAILABLE CONNECTION TYPES