From 560c530e279fb8ed2a4a23ba371a83870aacb71a Mon Sep 17 00:00:00 2001 From: jow Date: Fri, 18 Jan 2013 12:42:53 +0000 Subject: all targets: use numerically prefixed uci-defaults file names to better control order of execution git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35217 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../atheros/base-files/etc/uci-defaults/01_leds | 11 ++++++ .../atheros/base-files/etc/uci-defaults/02_network | 45 ++++++++++++++++++++++ .../linux/atheros/base-files/etc/uci-defaults/leds | 11 ------ .../atheros/base-files/etc/uci-defaults/network | 45 ---------------------- 4 files changed, 56 insertions(+), 56 deletions(-) create mode 100644 target/linux/atheros/base-files/etc/uci-defaults/01_leds create mode 100644 target/linux/atheros/base-files/etc/uci-defaults/02_network delete mode 100644 target/linux/atheros/base-files/etc/uci-defaults/leds delete mode 100644 target/linux/atheros/base-files/etc/uci-defaults/network (limited to 'target/linux/atheros/base-files/etc/uci-defaults') diff --git a/target/linux/atheros/base-files/etc/uci-defaults/01_leds b/target/linux/atheros/base-files/etc/uci-defaults/01_leds new file mode 100644 index 000000000..076a04bfd --- /dev/null +++ b/target/linux/atheros/base-files/etc/uci-defaults/01_leds @@ -0,0 +1,11 @@ +#!/bin/sh +# Copyright 2012 OpenWrt.org +# + +. /lib/functions/uci-defaults.sh + +ucidef_set_led_netdev "wlan" "wlan" "wlan" "wlan0" + +ucidef_commit_leds + +exit 0 diff --git a/target/linux/atheros/base-files/etc/uci-defaults/02_network b/target/linux/atheros/base-files/etc/uci-defaults/02_network new file mode 100644 index 000000000..7e91e6ac2 --- /dev/null +++ b/target/linux/atheros/base-files/etc/uci-defaults/02_network @@ -0,0 +1,45 @@ +#!/bin/sh +if [ -e "/sys/bus/mdio_bus/drivers/IC+ IP175C/0:00" -o \ + -e "/sys/bus/mdio_bus/drivers/IC+ IP17xx/0:00" ] && \ + [ -x /sbin/swconfig ]; +then + uci batch <