diff options
Diffstat (limited to 'share/examples/slattach/unit-command.sh')
-rwxr-xr-x | share/examples/slattach/unit-command.sh | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/share/examples/slattach/unit-command.sh b/share/examples/slattach/unit-command.sh deleted file mode 100755 index 9e97ffd..0000000 --- a/share/examples/slattach/unit-command.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -old_unit=$1 -new_unit=$2 - -if [ $old_unit != -1 ]; then - ifconfig sl$old_unit delete down - if [ $new_unit == -1 ]; then - route delete default - fi -fi - -if [ $new_unit != -1 ]; then - ifconfig sl$new_unit <address1> <address2> - if [ $old_unit == -1 ]; then - route add default <address2> - fi -fi |