From 3405299bbdcb8cffead58fce7d0a3f02b070456e Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 8 Jan 2009 15:15:43 -0800 Subject: disable bridge node should be same as disable ethernet There is no reason that disable of ethernet and disable of bridge have conflicting syntax. --- .../interfaces/bridge/node.tag/disable/node.def | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) (limited to 'templates') diff --git a/templates/interfaces/bridge/node.tag/disable/node.def b/templates/interfaces/bridge/node.tag/disable/node.def index f4495164..3f37a6d6 100644 --- a/templates/interfaces/bridge/node.tag/disable/node.def +++ b/templates/interfaces/bridge/node.tag/disable/node.def @@ -1,19 +1,11 @@ -type: bool help: Disable the bridge interface -default: false -update: if [ x$VAR(@) == xtrue ]; then - /etc/netplug/linkdown.d/dhclient $VAR(../@) - if ! sudo ip link set $VAR(../@) down 2>/dev/null; then +update: /etc/netplug/linkdown.d/dhclient $VAR(../@) + if ! sudo ip link set $VAR(../@) down 2>/dev/null; then echo "Error disabling dev $VAR(../@)" /etc/netplug/linkup.d/dhclient $VAR(../@) exit 1 - fi - else - if ! sudo ip link set $VAR(../@) up; then - echo "Error enabling dev $VAR(../@)" - exit 1 - fi fi -comp_help: possible completions: - true Disable the bridge interface - false Enable the bridge interface (default) +delete: if ! sudo ip link set $VAR(../@) up; then + echo "Error enabling dev $VAR(../@)" + exit 1 + fi -- cgit v1.2.3