summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/downinterfaces
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-06-21 19:07:21 +0000
committerobrien <obrien@FreeBSD.org>2002-06-21 19:07:21 +0000
commitf91ef96f2fdd651d92ece23ff67cd80b27c4db41 (patch)
tree181b44e78f9c9d9f5840a8e0c5387984adf301ed /etc/rc.d/downinterfaces
parente2bd215de79a284658e76b57d17115b64046354b (diff)
parentee31175803e680649c9d3770f90b1c19c36f4740 (diff)
downloadFreeBSD-src-f91ef96f2fdd651d92ece23ff67cd80b27c4db41.zip
FreeBSD-src-f91ef96f2fdd651d92ece23ff67cd80b27c4db41.tar.gz
This commit was generated by cvs2svn to compensate for changes in r98576,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'etc/rc.d/downinterfaces')
-rw-r--r--etc/rc.d/downinterfaces27
1 files changed, 27 insertions, 0 deletions
diff --git a/etc/rc.d/downinterfaces b/etc/rc.d/downinterfaces
new file mode 100644
index 0000000..6a5c943
--- /dev/null
+++ b/etc/rc.d/downinterfaces
@@ -0,0 +1,27 @@
+#!/bin/sh
+#
+# $NetBSD: downinterfaces,v 1.2 2001/09/04 20:40:40 martin Exp $
+#
+
+# PROVIDE: downinterfaces
+# KEYWORD: shutdown
+
+if [ "x$1" != "xstop" ]; then exit 0; fi
+
+. /etc/rc.conf
+
+tmp=`ifconfig -lu`
+iflist=""
+for int in $tmp; do
+ case $int in
+ pppoe*) iflist="$iflist $int"
+ ;;
+ esac
+done
+iflist="$iflist $force_down_interfaces"
+if [ "$iflist" = "" ] || [ "$iflist" = " " ]; then exit 0; fi
+
+echo "Shutting down interfaces:$iflist"
+for int in $iflist; do
+ ifconfig $int down
+done
OpenPOWER on IntegriCloud