gharris999;637812 Wrote: 
> Has anyone worked out scripts that generate pseudo "slimdevices" mac
> address for use with squeezeslave installations?  I.e. address in the
> "00:04:20:hh:hh:hh" range?
> 
> It would be nice to have such scripts for windows, linux & osx.  Linux
> & osx, I can probably kludge up.  Windows is harder, cmd.exe being such
> a weak shell for scripting.

#!/bin/bash -- 
newmac=`echo $RANDOM$RANDOM | md5sum | sed -r 's/(..)/\1:/g;
s/^(.{17}).*$/\1/;'` 
echo "New mac adress: $newmac"


-- 
truehl

SBS 7.6.x on SqueezePlug,
2 x Squeezebox Duet,
iPeng,
SqueezeSlave

My SqueezePlug Wiki: 'Wiki'
(http://wiki.slimdevices.com/index.php/SqueezePlug)
My Blog: 'Blog' (http://squeezeplug.de/)
My Downloads: 'Downloads' (http://squeezeplug.de//?page_id=2)
My Videos: 'YouTube' (http://www.youtube.com/squeezeplug)

Feel free to donate my SqueezePlug project: 'Donate'
(https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3R2M49ARYWK6C),
thanks a lot!
------------------------------------------------------------------------
truehl's Profile: http://forums.slimdevices.com/member.php?userid=34265
View this thread: http://forums.slimdevices.com/showthread.php?t=83362

_______________________________________________
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss

Reply via email to