aboutsummaryrefslogtreecommitdiff
path: root/share/examples/slattach/unit-command.sh
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2009-12-29 20:20:51 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2009-12-29 20:20:51 +0000
commit5689f92fb092453c93976931baf177c135e6f3bd (patch)
tree1180d019906c80924545b4832911cc0be7ec973a /share/examples/slattach/unit-command.sh
parentdc1c6863fa1522a0f0a963f0b0c6d707b8ed8843 (diff)
Notes
Diffstat (limited to 'share/examples/slattach/unit-command.sh')
-rwxr-xr-xshare/examples/slattach/unit-command.sh18
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 9e97ffdcd696..000000000000
--- 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