The way that functions are evaluated means that while
we say append our update-rc.d addition for udev-cache
ends up at the top of the postinst script meaning that
$OPT is not set and this error will cause no udev rcN.d
symlinks to be created until during the first boot which
can be a problem.
Signed-off-by: Tom Rini <tom_rini@mentor.com>
require udev.inc
-PR = "${INC_PR}.1"
+PR = "${INC_PR}.2"
SRC_URI += "file://mount.blacklist \
file://run.rules \
# Create the cache after checkroot has run
pkg_postinst_udev_append() {
+if test "x$D" != "x"; then
+ OPT="-r $D"
+else
+ OPT="-s"
+fi
update-rc.d $OPT udev-cache start 12 S .
if [ -d $D/lib/udev/rules.d ] ; then
the hotplug package and requires a kernel not older than 2.6.12."
LICENSE = "GPLv2+"
-PR = "r17"
+PR = "r18"
# Untested
DEFAULT_PREFERENCE = "-1"
# Create the cache after checkroot has run
pkg_postinst_udev_append() {
+ if test "x$D" != "x"; then
+ OPT="-r $D"
+ else
+ OPT="-s"
+ fi
update-rc.d $OPT udev-cache start 12 S .
}
the hotplug package and requires a kernel not older than 2.6.12."
LICENSE = "GPLv2+"
-PR = "r4"
+PR = "r5"
# Untested
DEFAULT_PREFERENCE = "-1"
# Create the cache after checkroot has run
pkg_postinst_udev_append() {
+ if test "x$D" != "x"; then
+ OPT="-r $D"
+ else
+ OPT="-s"
+ fi
update-rc.d $OPT udev-cache start 12 S .
}