base-files: evaluate uci-defaults on run-time installations
authorJohn Crispin <john@openwrt.org>
Fri, 29 Apr 2016 11:34:44 +0000 (11:34 +0000)
committerJohn Crispin <john@openwrt.org>
Fri, 29 Apr 2016 11:34:44 +0000 (11:34 +0000)
commitb23cbf52ea6f8c809609b0862995cbf2d60f5aad
treee16be4f49f81dcaa41b815b1b9d040fd74ae104e
parent573c2dc6114f724d7a500ee5ff92a1edaf62cfd8
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>
SVN-Revision: 49266
package/base-files/files/lib/functions.sh