Commit e8210827 authored by Jouke Witteveen's avatar Jouke Witteveen
Browse files

More possibilities for connection scripts

This allows connection scripts to provide defaults, among other things.
parent c8e96611
......@@ -3,6 +3,7 @@
. "$SUBR_DIR/ip"
: ${IFENSLAVE:=ifenslave}
: ${BindsToInterfaces=}
bond_up() {
if is_interface "$Interface"; then
......
......@@ -3,6 +3,7 @@
. "$SUBR_DIR/ip"
: ${BRCTL:=brctl}
: ${BindsToInterfaces=}
bridge_up() {
if is_interface "$Interface"; then
......
......@@ -2,6 +2,8 @@
. "$SUBR_DIR/ip"
: ${BindsToInterfaces=}
tunnel_up() {
if is_interface "$Interface"; then
report_error "Interface '$Interface' already exists"
......
......@@ -2,6 +2,8 @@
. "$SUBR_DIR/ip"
: ${BindsToInterfaces=}
tuntap_up() {
if is_interface "$Interface"; then
report_error "Interface '$Interface' already exists"
......
......@@ -115,6 +115,7 @@ load_profile() {
if [[ -x "$PROFILE_DIR/interfaces/$Interface" ]]; then
source "$PROFILE_DIR/interfaces/$Interface"
fi
source "$CONN_DIR/$Connection"
}
......
......@@ -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'..."
......
Supports Markdown
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