source: trunk/target/linux/ar71xx/base-files/etc/init.d/defconfig @ 28817

Last change on this file since 28817 was 28817, checked in by juhosg, 5 years ago

ar71xx: create generic network config from an uci-defaults script

  • Property svn:executable set to *
File size: 318 bytes
Line 
1#!/bin/sh /etc/rc.common
2#
3# Copyright (C) 2009 OpenWrt.org
4#
5
6START=05
7
8start() {
9        . /lib/ar71xx.sh
10
11        local board=$(ar71xx_board_name)
12
13        [ ! -d /etc/defconfig/$board ] && return 0
14
15        for f in $( ls /etc/defconfig/$board ); do
16                if [ ! -e /etc/config/$f ]; then
17                        cp /etc/defconfig/$board/$f /etc/config/
18                fi
19        done
20}
Note: See TracBrowser for help on using the repository browser.