mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-01 00:45:28 +00:00
add uci_set_default (to be used in init scripts or /etc/uci-defaults)
SVN-Revision: 10086
This commit is contained in:
parent
162f0194a1
commit
3b2e07b84f
@ -217,3 +217,9 @@ jffs2_mark_erase() {
|
||||
}
|
||||
echo -e "\xde\xad\xc0\xde" | mtd -qq write - "$1"
|
||||
}
|
||||
|
||||
uci_set_default() {
|
||||
local PACKAGE="$1"
|
||||
[ -e "/etc/config/$1" ] && return 0
|
||||
cat > "/etc/config/$1"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user