[BACK]Return to downinterfaces CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / etc / rc.d

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/etc/rc.d/downinterfaces between version 1.3 and 1.4

version 1.3, 2002/04/18 07:33:42 version 1.4, 2002/08/16 18:05:19
Line 6 
Line 6 
 # PROVIDE: downinterfaces  # PROVIDE: downinterfaces
 # KEYWORD: shutdown  # KEYWORD: shutdown
   
 if [ "x$1" != "xstop" ]; then exit 0; fi  if [ "x$1" = "xstop" ]; then
   
 . /etc/rc.conf  . /etc/rc.conf
   
Line 19  for int in $tmp; do
Line 19  for int in $tmp; do
         esac          esac
 done  done
 iflist="$iflist $force_down_interfaces"  iflist="$iflist $force_down_interfaces"
 if [ "$iflist" = "" ] || [ "$iflist" = " " ]; then exit 0; fi  if [ "$iflist" != "" ] && [ "$iflist" != " " ]
   then
   
 echo "Shutting down interfaces:$iflist"          echo "Shutting down interfaces:$iflist"
 for int in $iflist; do          for int in $iflist; do
         ifconfig $int down                  ifconfig $int down
 done          done
   fi
   
   fi

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

CVSweb <webmaster@jp.NetBSD.org>