echo -e "\xde\xad\xc0\xde" | mtd -qq write - "$1"
}
-uci_apply_defaults() {(
+uci_apply_defaults() {
cd /etc/uci-defaults || return 0
files="$(ls)"
[ -z "$files" ] && return 0
( . "./$(basename $file)" ) && rm -f "$file"
done
uci commit
-)}
+}
[ -z "$IPKG_INSTROOT" -a -f /lib/config/uci.sh ] && . /lib/config/uci.sh
[ -x /sbin/klogd ] && klogd ${klogconloglevel:+-c $klogconloglevel}
}
-apply_uci_config() {(
- include /lib/config
- uci_apply_defaults
-)}
+apply_uci_config() {
+ sh -c '. /etc/functions.sh; include /lib/config; uci_apply_defaults'
+}
start() {
[ -f /proc/mounts ] || /sbin/mount_root