[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-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sulogin.c.patch
Type: application/octet-stream
Size: 3406 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20140417/ff29769b/attachment-0015.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: inotifyd.c.patch
Type: application/octet-stream
Size: 4928 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20140417/ff29769b/attachment-0016.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rfkill.c.patch
Type: application/octet-stream
Size: 3601 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20140417/ff29769b/attachment-0017.obj>


More information about the Toybox mailing list