Commit 580f80ad authored by Jouke Witteveen's avatar Jouke Witteveen
Browse files

Small documentation updates

parent e4638274
......@@ -25,10 +25,12 @@ contain newlines and should not end in '.action', '.conf', or
'/etc/netctl/hooks/' and any executable script in
'/etc/netctl/interfaces/' with the name of the interface for the profile
are sourced. The name of the current profile is available via the
'Profile' variable in the environment of the sourced scripts.
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/'.
'Profile' variable in the environment of the sourced scripts. On
starting or stopping a profile, the respective command is available via
the 'Command' variable. 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
......
......@@ -34,13 +34,13 @@ quote_safe() {
fi
}
# Fill PROFILES and ESSIDS with the profile names and essids of the profiles
# for interface $1
# Fill PROFILES and ESSIDS with the profile names and essids and fill GENERATED
# with the names of automatically generated profiles for interface $1
init_profiles() {
local i=0 essid profile
while IFS= read -r profile; do
# Sandbox the sourcing of profiles
essid=$(
unset Interface ESSID
source "$PROFILE_DIR/$profile" > /dev/null
if [[ "$Interface" = "$1" && -n "$ESSID" ]]; then
if [[ "$ESSID" = \"\"*\" ]]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment