/[livecd-tools]/trunk/spind
Gentoo

Contents of /trunk/spind

Parent Directory Parent Directory | Revision Log Revision Log


Revision 124 - (hide annotations) (download)
Thu Dec 14 18:24:57 2006 UTC (11 years, 7 months ago) by wolf31o2
File size: 316 byte(s)
Removed all of the CVS-based headers and added /sbin/udevtrigger to the coldplug section of autoconfig, which should allow us to have coldplug-like functionality with newer udev versions.
1 wolf31o2 7 #!/bin/bash
2    
3 wolf31o2 20 CDSIZE=$(($(df -P | grep cdrom | head -n 1 | awk '{print $2}') - 256))
4 wolf31o2 7 [ -z "${CDSIZE}" ] && echo '>>> Unknown CD size...' && exit 1
5    
6 wolf31o2 18 echo ">>> CD size: $((${CDSIZE} + 256)) K"
7 wolf31o2 7 while true
8     do
9 wolf31o2 18 dd if=/dev/cdrom of=/dev/null bs=1K count=1 skip=$((${RANDOM} * ${CDSIZE} / 32768)) 2>/dev/null
10 wolf31o2 7 sleep 30
11     done

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20