summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/filesystem/filesystem.install
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-09-25 07:32:49 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-09-25 07:32:49 (GMT)
commitc8604e5387a6401ea4bc9695faa6f04184b02412 (patch)
tree27759172549668ad4498f0e86738b54aeb033a0a /abs/core-testing/filesystem/filesystem.install
parent54c1519c2b81b3fb95d4534ba4a2232e1f10eac2 (diff)
downloadlinhes_pkgbuild-c8604e5387a6401ea4bc9695faa6f04184b02412.zip
linhes_pkgbuild-c8604e5387a6401ea4bc9695faa6f04184b02412.tar.gz
linhes_pkgbuild-c8604e5387a6401ea4bc9695faa6f04184b02412.tar.bz2
filesystem:Fix for proper handling of optical media.
Diffstat (limited to 'abs/core-testing/filesystem/filesystem.install')
-rw-r--r--abs/core-testing/filesystem/filesystem.install8
1 files changed, 8 insertions, 0 deletions
diff --git a/abs/core-testing/filesystem/filesystem.install b/abs/core-testing/filesystem/filesystem.install
index 92b336f..5be51ed 100644
--- a/abs/core-testing/filesystem/filesystem.install
+++ b/abs/core-testing/filesystem/filesystem.install
@@ -57,4 +57,12 @@ post_upgrade() {
echo "adding new group: scanner"
usr/sbin/groupadd -g 96 scanner >/dev/null
fi
+ cp /etc/fstab /etc/fstab.orig
+ if grep -q /dev/sro /etc/fstab
+ then
+ exit
+ else
+ grep -v /dev/dvd /etc/fstab > /tmp/fstab
+ cat /tmp/fstab | sed -e 's|/dev/cdrom|/dev/sr0|g' > /etc/fstab
+ fi
}