/[livecd-tools]/trunk/spind
Gentoo

Contents of /trunk/spind

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8 - (show annotations) (download)
Sun Jul 25 23:02:27 2004 UTC (13 years, 11 months ago) by plasmaroo
File size: 393 byte(s)
Fixed spind to work with long mount names.

1 #!/bin/bash
2 # Copyright 1999-2004 Gentoo Foundation
3 # NO WARRANTY; licensed under the GNU GPL2
4
5 CDSIZE=$(($(df -P | grep cdrom | head -n 1 | awk '{print $2}') - 256))
6 [ -z "${CDSIZE}" ] && echo '>>> Unknown CD size...' && exit 1
7
8 echo ">>> CD size: $(($CDSIZE + 256)) K"
9 while true
10 do
11 dd if=/dev/cdrom of=/dev/null bs=1K count=1 skip=$(($RANDOM * $CDSIZE / 32768)) 2>/dev/null
12 sleep 30
13 done

Properties

Name Value
svn:eol-style native
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.20