diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-04-07 10:01:54 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-04-07 10:01:54 +0000 |
commit | fa7d088f184486df61fa78de37d301320426d6b8 (patch) | |
tree | 9254bb6004ea30078236aa36bd4332249728ecdd /package/base-files/files/lib | |
parent | ad3793303a4ae0b2c1fae93f9812d4f58b0f04a3 (diff) | |
download | master-187ad058-fa7d088f184486df61fa78de37d301320426d6b8.tar.gz master-187ad058-fa7d088f184486df61fa78de37d301320426d6b8.tar.bz2 master-187ad058-fa7d088f184486df61fa78de37d301320426d6b8.zip |
base-files: move uci_apply_defaults() to /etc/init.d/boot
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40408 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/lib')
-rwxr-xr-x | package/base-files/files/lib/functions.sh | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/package/base-files/files/lib/functions.sh b/package/base-files/files/lib/functions.sh index fa4c2d670c..cec78c5062 100755 --- a/package/base-files/files/lib/functions.sh +++ b/package/base-files/files/lib/functions.sh @@ -368,17 +368,6 @@ jffs2_mark_erase() { echo -e "\xde\xad\xc0\xde" | mtd -qq write - "$1" } -uci_apply_defaults() { - cd /etc/uci-defaults || return 0 - files="$(ls)" - [ -z "$files" ] && return 0 - mkdir -p /tmp/.uci - for file in $files; do - ( . "./$(basename $file)" ) && rm -f "$file" - done - uci commit -} - group_add() { local name="$1" local gid="$2" |