summaryrefslogtreecommitdiffstats
path: root/src/lib/globals
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 /src/lib/globals
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 'src/lib/globals')
-rw-r--r--src/lib/globals2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/globals b/src/lib/globals
index ee45f52..5926472 100644
--- a/src/lib/globals
+++ b/src/lib/globals
@@ -93,7 +93,7 @@ timeout_wait() {
list_profiles() {
# JP: follow aliases with -L, also skip profiles that end with '.conf' (so
# profile.conf can be the wpa.conf file for profile)
- find -L "$PROFILE_DIR/" -maxdepth 1 -type f -not -name '.*' -not -name '*~' -not -name '*.conf' -not -name '*.service' -printf "%f\n"
+ find -L "$PROFILE_DIR/" -maxdepth 1 -type f -not -name '.*' -not -name '*~' -not -name '*.action' -not -name '*.conf' -not -name '*.service' -printf "%f\n"
}
## Sources all hooks, a profile and any interface hook