On 7/26/2018 6:54 PM, Brian J. Murrell wrote: > On Thu, 2018-07-26 at 08:51 -0700, Tom Eastep wrote: >> >> Brian, > > Hi Tom, > >> Can you point me to online documentation that describes how this >> 'lock' >> utility is supposed to work? > > It's a busybox applet added to busybox by OpenWRT. Here's the source > for it: > > https://github.com/openwrt/openwrt/blob/154c0c4006daf41e2cbb6c8b7ad5557f83dfea3e/package/utils/busybox/patches/220-add_lock_util.patch > > There seems to be minimal documentation at: > > https://wiki.openwrt.org/inbox/script/manual_busybox_functions_openwrt >
root@LEDE:~# cat /etc/banner | grep -i reboot \ DE \ / Reboot (17.01.4, r3560-79f57e422d) root@LEDE:~# lock -k Usage: lock [-suw] <filename> -s Use shared locking -u Unlock -w Wait for the lock to become free, don't acquire lock -n Don't wait for the lock to become free. Fail with exit code root@LEDE:~# HTH -Matt -- Matt Darfeuille ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Shorewall-users mailing list Shorewall-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/shorewall-users