I have this applet lying around in my tree for some time now.
Denys, ok for me to install this one?

An alternative would of course be to start a multicall shell script, say
busybox.sh, installed as /bin/busybox.sh, linked to e.g.
/usr/bin/mcookie like:

---8<---
#!/bin/sh
# Copyright (c) 2012 Bernhard Reutner-Fischer
# Licensed under GPLv2 or later

case $0 in
*mcookie)
        dd if=/dev/urandom bs=16 count=1 2>/dev/null | hexdump -e '"%08x"'
        ;;
*) cat <<-EOH
BusyBox v1.24.0.git (2015-01-21 19:22:23 CET) multi-call shell script
BusyBox is copyrighted by many authors between 1998-2015.
Licensed under GPLv2 or later. See source distribution for detailed
copyright notices.
EOH
;;
esac
---8<---

I can whip up the needed infrastructure to host this "applet" and other
such helpers that can be implemented ontop of existing C applets if you
prefer..

thanks,

Bernhard Reutner-Fischer (1):
  mcookie: new applet

 include/dump.h      |  2 +-
 libbb/dump.c        |  8 +++++++-
 miscutils/mcookie.c | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 62 insertions(+), 2 deletions(-)
 create mode 100644 miscutils/mcookie.c

-- 
2.1.4

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to