]> git.madduck.net Git - code/vinst.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

fix dd call for mac address
authormartin f. krafft <madduck@madduck.net>
Thu, 13 Nov 2014 12:55:48 +0000 (13:55 +0100)
committermartin f. krafft <madduck@madduck.net>
Thu, 13 Nov 2014 12:55:48 +0000 (13:55 +0100)
vinst

diff --git a/vinst b/vinst
index 695ae17f07af6ab7d07f5b5bfbf814b143a0fe5d..7d0ad491ad7b2c3a77f32f11afb0b98a10455523 100755 (executable)
--- a/vinst
+++ b/vinst
@@ -157,7 +157,7 @@ if [ -z "$ARCH" ]; then
 fi
 
 if [ -z "$MAC" ]; then
 fi
 
 if [ -z "$MAC" ]; then
-  bytes=$(dd status=none if=/dev/urandom bs=3 count=1 | hexdump -v -e '/1 ":%02X"')
+  bytes=$(dd status=noxfer if=/dev/urandom bs=3 count=1 | hexdump -v -e '/1 ":%02X"')
   MAC=52:54:00$bytes
 fi
 
   MAC=52:54:00$bytes
 fi