/[livecd-tools]/trunk/spind
Gentoo

Diff of /trunk/spind

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 20 Revision 44
1#!/bin/bash 1#!/bin/bash
2# Copyright 1999-2004 Gentoo Foundation 2# Copyright 1999-2005 Gentoo Foundation
3# NO WARRANTY; licensed under the GNU GPL2 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 $
4 5
5CDSIZE=$(($(df -P | grep cdrom | head -n 1 | awk '{print $2}') - 256)) 6CDSIZE=$(($(df -P | grep cdrom | head -n 1 | awk '{print $2}') - 256))
6[ -z "${CDSIZE}" ] && echo '>>> Unknown CD size...' && exit 1 7[ -z "${CDSIZE}" ] && echo '>>> Unknown CD size...' && exit 1
7 8
8echo ">>> CD size: $((${CDSIZE} + 256)) K" 9echo ">>> CD size: $((${CDSIZE} + 256)) K"

Legend:
Removed from v.20  
changed lines
  Added in v.44

  ViewVC Help
Powered by ViewVC 1.1.20