}
config_load() {
- [ -n "$IPKG_INSTROOT" ] && return 0
uci_load "$@"
}
if [ "$PKG_UPGRADE" != "1" ]; then
"$i" disable
fi
- "$i" stop
+ "$i" stop || /bin/true
fi
done
}
ret=$?
fi
+ if [ -d "$root/rootfs-overlay" ]; then
+ cp -R $root/rootfs-overlay/. $root/
+ rm -fR $root/rootfs-overlay/
+ fi
+
if [ -z "$root" ] && grep -q -s "^/etc/uci-defaults/" "/usr/lib/opkg/info/${pkgname}.list"; then
. /lib/functions/system.sh
[ -d /tmp/.uci ] || mkdir -p /tmp/.uci
grep -qs "^${1}:" ${IPKG_INSTROOT}/etc/passwd
}
-[ -z "$IPKG_INSTROOT" -a -f /lib/config/uci.sh ] && . /lib/config/uci.sh
+. $IPKG_INSTROOT/lib/config/uci.sh