|
|
@ -263,7 +263,7 @@ jffs2_mark_erase() { |
|
|
|
echo -e "\xde\xad\xc0\xde" | mtd -qq write - "$1" |
|
|
|
echo -e "\xde\xad\xc0\xde" | mtd -qq write - "$1" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
uci_apply_defaults() {( |
|
|
|
uci_apply_defaults() { |
|
|
|
cd /etc/uci-defaults || return 0 |
|
|
|
cd /etc/uci-defaults || return 0 |
|
|
|
files="$(ls)" |
|
|
|
files="$(ls)" |
|
|
|
[ -z "$files" ] && return 0 |
|
|
|
[ -z "$files" ] && return 0 |
|
|
@ -272,6 +272,6 @@ uci_apply_defaults() {( |
|
|
|
( . "./$(basename $file)" ) && rm -f "$file" |
|
|
|
( . "./$(basename $file)" ) && rm -f "$file" |
|
|
|
done |
|
|
|
done |
|
|
|
uci commit |
|
|
|
uci commit |
|
|
|
)} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[ -z "$IPKG_INSTROOT" -a -f /lib/config/uci.sh ] && . /lib/config/uci.sh |
|
|
|
[ -z "$IPKG_INSTROOT" -a -f /lib/config/uci.sh ] && . /lib/config/uci.sh |
|
|
|