base-files: evaluate uci-defaults on run-time installations
authorluka <luka@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 10 May 2016 22:36:49 +0000 (22:36 +0000)
committerluka <luka@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 10 May 2016 22:36:49 +0000 (22:36 +0000)
commitc53a07d12ab7bd200b8270e7b2ad075e73051ebb
treee8d4030457c20b7d0e3af86c4a05d55e58bd933e
parentbbd7ca5aeb25d3f698b7bc5b6f4ef60cdd80a792
base-files: evaluate uci-defaults on run-time installations

Packages may install scripts into /etc/uci-defaults to be executed once
after installation, usually at the first boot of the target. This works
fine if the package was installed to the rootfs during build or using
the ImageBuilder.
If the package is installed using opkg during run-time uci-defaults
were applied only after a reboot of the device. Avoid the need to
reboot by evaluting the package's uci-defaults in default-postinst.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49340 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/base-files/files/lib/functions.sh