Since v2.41, util-linux flock has understood the --fcntl option,
making it use fcntl(F_OFD_SETLK[W]) instead of flock().
Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
if $pm_installed; then
case $pm in
"ipk")
- if ! `fcntl-lock --wait 30 /run/opkg.lock true`; then
+ if ! `flock --fcntl --wait 30 /run/opkg.lock true`; then
eval echo "Unable to obtain the opkg lock, deadlock?" $append_log
fi
if ! eval "opkg configure $append_log"; then
inherit allarch systemd update-rc.d
-RDEPENDS:${PN} = "util-linux-fcntl-lock"
+RDEPENDS:${PN} = "util-linux-flock"
INITSCRIPT_NAME = "run-postinsts"
INITSCRIPT_PARAMS = "start 99 S ."