diff options
author | Felix Fietkau <nbd@openwrt.org> | 2005-07-17 22:52:59 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2005-07-17 22:52:59 +0000 |
commit | 8cf55878a814d1a6708817adce2819373ae3883e (patch) | |
tree | 56a8d56d6b30807c4241db07dd6ac9263eedd4e6 /openwrt/package/base-files/default/sbin/ifdown | |
parent | a9a51421ce9d685576836537b2776be6c788785f (diff) | |
download | mtk-20170518-8cf55878a814d1a6708817adce2819373ae3883e.zip mtk-20170518-8cf55878a814d1a6708817adce2819373ae3883e.tar.gz mtk-20170518-8cf55878a814d1a6708817adce2819373ae3883e.tar.bz2 |
move target/default/target_skeleton into package/base-files, put all the default files in ipkg packages, cleanup some junk in toolchain/, toolchain/ no longer changes build_mipsel/root
SVN-Revision: 1494
Diffstat (limited to 'openwrt/package/base-files/default/sbin/ifdown')
-rwxr-xr-x | openwrt/package/base-files/default/sbin/ifdown | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/openwrt/package/base-files/default/sbin/ifdown b/openwrt/package/base-files/default/sbin/ifdown new file mode 100755 index 0000000..6b255cc --- /dev/null +++ b/openwrt/package/base-files/default/sbin/ifdown @@ -0,0 +1,9 @@ +#!/bin/ash +[ $# = 0 ] && { echo " $0 <group>"; exit; } +. /etc/functions.sh +type=$1 +debug "### ifdown $type ###" +if=$(nvram get ${type}_ifname) +if_valid $if || exit +$DEBUG ifconfig $if down +kill $(cat /var/run/${if}.pid 2>&-) 2>&- |