/[livecd-tools]/trunk/spind
Gentoo

Contents of /trunk/spind

Parent Directory Parent Directory | Revision Log Revision Log


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

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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20