mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-26 22:31:06 +02:00
add uci_set_default (to be used in init scripts or /etc/uci-defaults)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10086 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
1967f72302
commit
82d2ff5e3f
@ -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