Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
netctl
Commits
05959bbb
Commit
05959bbb
authored
Feb 25, 2014
by
Jouke Witteveen
Browse files
Remove CONN_DIR variable
It is not of much use.
parent
39310482
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lib/connections/vlan
View file @
05959bbb
# Contributed by: Thomas S Hatch <thatch45@gmail.com>
.
"
$
CONN_DIR
/ethernet"
.
"
$
SUBR_DIR
/connections
/ethernet"
vlan_up
()
{
if
[[
${#
BindsToInterfaces
[@]
}
-ne
1
]]
;
then
...
...
@@ -23,4 +23,5 @@ vlan_down() {
ip
link
delete
"
$Interface
"
}
# vim: ft=sh ts=4 et sw=4:
src/lib/globals
View file @
05959bbb
NETCTL_VERSION
=
"notpackaged"
PROFILE_DIR
=
"/etc/netctl"
SUBR_DIR
=
"/usr/lib/network"
CONN_DIR
=
"
$SUBR_DIR
/connections"
STATE_DIR
=
"/run/network"
STATE_FILE
=
"
${
NETCTL_STATE_FILE
:-
/var/lib/netctl/netctl.state
}
"
...
...
@@ -117,13 +116,13 @@ load_profile() {
if
[[
-z
$Interface
]]
;
then
exit_error
"Profile '
$1
' does not specify an interface"
fi
if
[[
!
-r
"
${
Connection
:+
$
CONN_DIR
/
$Connection
}
"
]]
;
then
if
[[
!
-r
"
${
Connection
:+
$
SUBR_DIR
/connections
/
$Connection
}
"
]]
;
then
exit_error
"Profile '
$1
' does not specify a valid connection"
fi
if
[[
-x
"
$PROFILE_DIR
/interfaces/
$Interface
"
]]
;
then
source
"
$PROFILE_DIR
/interfaces/
$Interface
"
fi
source
"
$
CONN_DIR
/
$Connection
"
source
"
$
SUBR_DIR
/connections
/
$Connection
"
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment