summaryrefslogtreecommitdiffstats
path: root/share/examples/slattach
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2009-12-29 20:20:51 +0000
committertrasz <trasz@FreeBSD.org>2009-12-29 20:20:51 +0000
commit4465947ce0b1c527cc394362a3d195160a3c1f5b (patch)
tree1180d019906c80924545b4832911cc0be7ec973a /share/examples/slattach
parent1ec05ea1e0009e596096dcf81a475edc77fcbaa1 (diff)
downloadFreeBSD-src-4465947ce0b1c527cc394362a3d195160a3c1f5b.zip
FreeBSD-src-4465947ce0b1c527cc394362a3d195160a3c1f5b.tar.gz
Remove examples for pppd and SLIP-related stuff.
Diffstat (limited to 'share/examples/slattach')
-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 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
OpenPOWER on IntegriCloud