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
e8210827
Commit
e8210827
authored
Mar 22, 2013
by
Jouke Witteveen
Browse files
More possibilities for connection scripts
This allows connection scripts to provide defaults, among other things.
parent
c8e96611
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/lib/connections/bond
View file @
e8210827
...
...
@@ -3,6 +3,7 @@
. "$SUBR_DIR/ip"
: ${IFENSLAVE:=ifenslave}
: ${BindsToInterfaces=}
bond_up() {
if is_interface "$Interface"; then
...
...
src/lib/connections/bridge
View file @
e8210827
...
...
@@ -3,6 +3,7 @@
. "$SUBR_DIR/ip"
: ${BRCTL:=brctl}
: ${BindsToInterfaces=}
bridge_up() {
if is_interface "$Interface"; then
...
...
src/lib/connections/tunnel
View file @
e8210827
...
...
@@ -2,6 +2,8 @@
. "$SUBR_DIR/ip"
: ${BindsToInterfaces=}
tunnel_up() {
if is_interface "$Interface"; then
report_error "Interface '$Interface' already exists"
...
...
src/lib/connections/tuntap
View file @
e8210827
...
...
@@ -2,6 +2,8 @@
. "$SUBR_DIR/ip"
: ${BindsToInterfaces=}
tuntap_up() {
if is_interface "$Interface"; then
report_error "Interface '$Interface' already exists"
...
...
src/lib/globals
View file @
e8210827
...
...
@@ -115,6 +115,7 @@ load_profile() {
if
[[
-x
"
$PROFILE_DIR
/interfaces/
$Interface
"
]]
;
then
source
"
$PROFILE_DIR
/interfaces/
$Interface
"
fi
source
"
$CONN_DIR
/
$Connection
"
}
...
...
src/lib/network
View file @
e8210827
...
...
@@ -48,7 +48,6 @@ cd /
# Expose the profile name
Profile
=
$2
load_profile
"
$Profile
"
source
"
$CONN_DIR
/
$Connection
"
case
$1
in
start
)
report_notice
"Starting network profile '
$Profile
'..."
...
...
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