[package] base-files: add ucidef_add_switch_port function
[openwrt.git] / target / linux / ar71xx / base-files / etc / init.d / defconfig
index 856d375829df375412167cdc2297cce4dc54e9e0..364fa4a6a52648e6d06293f337103583105a76ba 100755 (executable)
@@ -3,14 +3,14 @@
 # Copyright (C) 2009 OpenWrt.org
 #
 
-. /lib/ar71xx.sh
-
 START=05
 
 start() {
+       . /lib/ar71xx.sh
+
        local board=$(ar71xx_board_name)
 
-       [ ! -d /etc/defconfig/$board ] && board="generic"
+       [ ! -d /etc/defconfig/$board ] && return 0
 
        for f in $( ls /etc/defconfig/$board ); do
                if [ ! -e /etc/config/$f ]; then