From c2b5767572c7cece21f7739e416d59458278b7d8 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 20 Oct 2011 15:01:06 +0000 Subject: base-files: move network related scripts to a separate package to make the transition to netifd easier SVN-Revision: 28495 --- package/base-files/files/sbin/ifup | 51 -------------------------------------- 1 file changed, 51 deletions(-) delete mode 100755 package/base-files/files/sbin/ifup (limited to 'package/base-files/files/sbin/ifup') diff --git a/package/base-files/files/sbin/ifup b/package/base-files/files/sbin/ifup deleted file mode 100755 index 5f8d80d..0000000 --- a/package/base-files/files/sbin/ifup +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/sh -# Copyright (C) 2006-2011 OpenWrt.org - -/sbin/ifdown "$@" - -. /etc/functions.sh -[ $# = 0 ] && { echo " $0 "; exit; } - -setup_wifi=1 - -case "$1" in - "-a") - [ -e "/tmp/resolv.conf.auto" ] && rm /tmp/resolv.conf.auto - config_cb() { - [ interface != "$1" -o -z "$2" ] || eval "$0 -w $2" - } - config_load network - exit 0 - ;; - "-w") setup_wifi=0; shift ;; -esac - -if [ $setup_wifi -gt 0 ] && grep -q config /etc/config/wireless; then - find_related_radios() { - local wdev wnet - config_get wdev "$1" device - config_get wnet "$1" network - - if [ -n "$wdev" ] && [ "$wnet" = "$network" ]; then - append radio_devs "$wdev" "$N" - fi - } - - local radio_devs - local network="$1" - config_load wireless - config_foreach find_related_radios wifi-iface - - local dev - for dev in $(echo "$radio_devs" | sort -u); do - /sbin/wifi up "$dev" - done -fi - -include /lib/network -scan_interfaces - -config_get ifname "$1" device -for dev in ${ifname:-$1}; do - setup_interface "$dev" "$1" -done -- cgit v1.1