Skip to content

Commit

Permalink
More possibilities for connection scripts
Browse files Browse the repository at this point in the history
This allows connection scripts to provide defaults, among other things.
  • Loading branch information
joukewitteveen committed Mar 22, 2013
1 parent c8e9661 commit e821082
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/lib/connections/bond
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
. "$SUBR_DIR/ip"

: ${IFENSLAVE:=ifenslave}
: ${BindsToInterfaces=}

bond_up() {
if is_interface "$Interface"; then
Expand Down
1 change: 1 addition & 0 deletions src/lib/connections/bridge
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
. "$SUBR_DIR/ip"

: ${BRCTL:=brctl}
: ${BindsToInterfaces=}

bridge_up() {
if is_interface "$Interface"; then
Expand Down
2 changes: 2 additions & 0 deletions src/lib/connections/tunnel
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

. "$SUBR_DIR/ip"

: ${BindsToInterfaces=}

tunnel_up() {
if is_interface "$Interface"; then
report_error "Interface '$Interface' already exists"
Expand Down
2 changes: 2 additions & 0 deletions src/lib/connections/tuntap
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

. "$SUBR_DIR/ip"

: ${BindsToInterfaces=}

tuntap_up() {
if is_interface "$Interface"; then
report_error "Interface '$Interface' already exists"
Expand Down
1 change: 1 addition & 0 deletions src/lib/globals
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ load_profile() {
if [[ -x "$PROFILE_DIR/interfaces/$Interface" ]]; then
source "$PROFILE_DIR/interfaces/$Interface"
fi
source "$CONN_DIR/$Connection"
}


Expand Down
1 change: 0 additions & 1 deletion src/lib/network
Original file line number Diff line number Diff line change
Expand Up @@ -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'..."
Expand Down

0 comments on commit e821082

Please sign in to comment.