base-files: evaluate uci-defaults on run-time installations
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 29 Apr 2016 11:34:44 +0000 (11:34 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 29 Apr 2016 11:34:44 +0000 (11:34 +0000)
commit8ed0bc77e7805a5898e1334dd3d909551b94ac64
tree2da534bda4ea970573a72f8be850fd7570282ec3
parent20fbdd5a90b45da1f6885d208cd466c9e04bdd48
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@49266 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/base-files/files/lib/functions.sh