summaryrefslogtreecommitdiff
path: root/spind
diff options
context:
space:
mode:
authorTim Yamin <plasmaroo@gentoo.org>2004-07-25 23:02:27 +0000
committerTim Yamin <plasmaroo@gentoo.org>2004-07-25 23:02:27 +0000
commit2c991cc6cd27586e741afb48160e32813a5e9a15 (patch)
treef1f0526f5f8e10144d54bd3ce2ca2aebc061dc6e /spind
parentAdding spind version 0.1 by plasmaroo. (diff)
downloadlivecd-tools-2c991cc6cd27586e741afb48160e32813a5e9a15.tar.gz
livecd-tools-2c991cc6cd27586e741afb48160e32813a5e9a15.tar.bz2
livecd-tools-2c991cc6cd27586e741afb48160e32813a5e9a15.zip
Fixed spind to work with long mount names.
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/livecd-tools/trunk@8 7bf51bff-881f-0410-a643-fba68b97345e
Diffstat (limited to 'spind')
-rwxr-xr-xspind4
1 files changed, 2 insertions, 2 deletions
diff --git a/spind b/spind
index 1d3e089..eefb674 100755
--- a/spind
+++ b/spind
@@ -1,8 +1,8 @@
#!/bin/bash
-# Copyright 2004 <plasmaroo@gentoo.org>
+# Copyright 1999-2004 Gentoo Foundation
# NO WARRANTY; licensed under the GNU GPL2
-CDSIZE=$(($(df | grep cdrom | head -n 1 | awk '{print $2}') - 256))
+CDSIZE=$(($(df -P | grep cdrom | head -n 1 | awk '{print $2}') - 256))
[ -z "${CDSIZE}" ] && echo '>>> Unknown CD size...' && exit 1
echo ">>> CD size: $(($CDSIZE + 256)) K"