* Alexander Couzens <lyn...@fe80.eu> [07.08.2015 20:48]: > lock -n is similiar to flock -n. If the lock was already taken, > fail with exit code = 1 and write error message to stderr.
see: http://mywiki.wooledge.org/BashFAQ/045 internally we are using 'mkdir' which is called via a 'lock()' function: if mkdir /tmp/lock_$reason; then return 0 else return 1 fi bye, bastian _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel