source: trunk/root/sbin/ifdown @ 94

Last change on this file since 94 was 94, checked in by mbm, 12 years ago

split ifup/ifdown/wifi into standalone scripts

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 198 bytes
Line 
1#!/bin/ash
2. /etc/functions.sh
3  type=$1
4  debug "### ifdown $type ###"
5  if=$(nvram_get ${type}_ifname)
6  if_valid $if || return
7  kill $(cat /var/run/${if}.pid 2>-) 2>-
8  $DEBUG ifconfig $if down
Note: See TracBrowser for help on using the repository browser.