[OpenWrt-Devel] flock vs. lock in scripts

Bastian Bittorf bittorf at bluebottle.com
Tue Nov 24 11:39:41 EST 2015


OpenWrt ships since a long time an own
implementation of locking for scripts:

https://dev.openwrt.org/browser/trunk/package/utils/busybox/patches/220-add_lock_util.patch

can we use 'flock' for that which is upstream/busybox
or maybe use a shell-function for that?

seems, that the only users are:
/lib/functions.sh
/lib/preinit/30_failsafe_wait
/lib/preinit/40_run_failsafe_hook
/lib/preinit/99_10_failsafe_login

with e.g.:
lock $file
luch -u $file
lock -w $file

bye, bastian
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list