/[livecd-tools]/trunk/spind
Gentoo

Contents of /trunk/spind

Parent Directory Parent Directory | Revision Log Revision Log


Revision 44 - (hide annotations) (download)
Tue Mar 1 18:13:51 2005 UTC (12 years, 10 months ago) by wolf31o2
File size: 518 byte(s)
Fixed net-setup and x-setup and also updated headers on all files.

1 wolf31o2 7 #!/bin/bash
2 wolf31o2 44 # Copyright 1999-2005 Gentoo Foundation
3     # Distributed under the terms of the GNU General Public License v2
4     # $Header: /var/cvsroot/gentoo/src/livecd-tools/spind,v 1.5 2005/03/01 18:13:51 wolf31o2 Exp $
5 wolf31o2 7
6 wolf31o2 20 CDSIZE=$(($(df -P | grep cdrom | head -n 1 | awk '{print $2}') - 256))
7 wolf31o2 7 [ -z "${CDSIZE}" ] && echo '>>> Unknown CD size...' && exit 1
8    
9 wolf31o2 18 echo ">>> CD size: $((${CDSIZE} + 256)) K"
10 wolf31o2 7 while true
11     do
12 wolf31o2 18 dd if=/dev/cdrom of=/dev/null bs=1K count=1 skip=$((${RANDOM} * ${CDSIZE} / 32768)) 2>/dev/null
13 wolf31o2 7 sleep 30
14     done

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20