/[livecd-tools]/trunk/spind
Gentoo

Contents of /trunk/spind

Parent Directory Parent Directory | Revision Log Revision Log


Revision 20 - (show annotations) (download)
Thu Nov 25 04:42:53 2004 UTC (9 years, 4 months ago) by wolf31o2
File size: 399 byte(s)
I need to learn awk, really...

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