[Toybox] [New Toys] - inotifyd, rfkill & sulogin

Ashwini Sharma ak.ashwini1981 at gmail.com
Thu Apr 17 02:45:08 PDT 2014


Hi Rob, List,

Three new toy's patches are attached here with.

1. inotifyd - watch for filesystem events.

2. rfkill - enable/disable the radio devices
   e.g. Wireless adapter, Bluetooth devices...

3. sulogin - Single-user login. This required a minor change in
__lib/password.c__
    to capture an EOF scenario.
@@ -79,7 +79,7 @@

     int ret = read(0, &buff[i], 1);
-    if ( ret < 0 ) {
+    if ( (ret < 0) || (!ret && !i) ) {
       buff[0] = 0;


Your inputs will make the code better. :)

NB: For commands having TOYFLAG_NEEDROOT set,
       toybox shouts for __Need root__ even for __--help__ option.
       e.g. [toybox]$ ./toybox sulogin --help
              toybox: Not root

regards,
Ashwini
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20140417/ff29769b/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sulogin.c.patch
Type: application/octet-stream
Size: 3405 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20140417/ff29769b/attachment-0006.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: inotifyd.c.patch
Type: application/octet-stream
Size: 4927 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20140417/ff29769b/attachment-0007.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rfkill.c.patch
Type: application/octet-stream
Size: 3600 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20140417/ff29769b/attachment-0008.obj>


More information about the Toybox mailing list