From 3d217da60be837026f3af237bac84e2fdda5c57c Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Mon, 21 Feb 2011 09:35:36 +0000 Subject: [PATCH] add a default network config file, patch from Wipster SVN-Revision: 25647 --- .../ar7/base-files/etc/uci-defaults/network | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 target/linux/ar7/base-files/etc/uci-defaults/network diff --git a/target/linux/ar7/base-files/etc/uci-defaults/network b/target/linux/ar7/base-files/etc/uci-defaults/network new file mode 100644 index 00000000000..2d35c56b14f --- /dev/null +++ b/target/linux/ar7/base-files/etc/uci-defaults/network @@ -0,0 +1,30 @@ +#!/bin/sh +if [ -e "/sys/bus/mdio_bus/drivers/IC+ IP175A/1:00" -o \ + -e "/sys/bus/mdio_bus/drivers/IC+ IP17xx/1:00" ] && \ + [ -x /sbin/swconfig ]; +then + uci batch <