/[livecd-tools]/trunk/spind
Gentoo

Contents of /trunk/spind

Parent Directory Parent Directory | Revision Log Revision Log


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

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 plasmaroo 8 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     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