diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-09-25 07:32:49 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-09-25 07:32:49 (GMT) |
commit | c8604e5387a6401ea4bc9695faa6f04184b02412 (patch) | |
tree | 27759172549668ad4498f0e86738b54aeb033a0a /abs/core-testing/filesystem/filesystem.install | |
parent | 54c1519c2b81b3fb95d4534ba4a2232e1f10eac2 (diff) | |
download | linhes_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.install | 8 |
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 } |