From b6e3f89934e70bbed2a7e1c550760fc9d356c821 Mon Sep 17 00:00:00 2001
From: Michael Hanson <hansonorders@verison.net>
Date: Fri, 26 Mar 2010 21:55:07 +0000
Subject: plextor-convertX-driver: Add required usbfs line to /etc/fstab via
 .install closes 370

---
 abs/core-testing/plextor-convertX-driver/PKGBUILD         | 5 ++++-
 abs/core-testing/plextor-convertX-driver/convertX.install | 3 +++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/abs/core-testing/plextor-convertX-driver/PKGBUILD b/abs/core-testing/plextor-convertX-driver/PKGBUILD
index 14ecfdc..8b203f6 100755
--- a/abs/core-testing/plextor-convertX-driver/PKGBUILD
+++ b/abs/core-testing/plextor-convertX-driver/PKGBUILD
@@ -2,7 +2,7 @@
 
 pkgname=plextor-convertX-driver
 pkgver=0.9.8
-pkgrel=6
+pkgrel=7
 _kernver=2.6.28-LinHES
 pkgdesc="Drivers for Plextor tuners"
 arch=(i686 x86_64)
@@ -31,3 +31,6 @@ build() {
   install -m755 apps/gorecord $startdir/pkg/usr/bin/gorecord
   install -m755 apps/modet $startdir/pkg/usr/bin/modet
 }
+md5sums=('b4299b6e2fcbaf461bc8afe36654f314'
+         'e4c7bc33d6e69eafc10bd107cf648828'
+         '3b89d8746adf70102eeeb47d03627ece')
diff --git a/abs/core-testing/plextor-convertX-driver/convertX.install b/abs/core-testing/plextor-convertX-driver/convertX.install
index 8081c6a..5b79d84 100755
--- a/abs/core-testing/plextor-convertX-driver/convertX.install
+++ b/abs/core-testing/plextor-convertX-driver/convertX.install
@@ -7,6 +7,8 @@ post_install() {
   echo ">>> Updating module dependencies. Please wait ..."
   KERNEL_VERSION=2.6.28-LinHES
   depmod -v $KERNEL_VERSION > /dev/null 2>&1
+  echo "# Added For Plextor ConvertX" >> /etc/fstab
+  echo "usbfs /proc/bus/usb usbfs devmode=0666 0 0" >> /etc/fstab
   /bin/true
 }
 
@@ -23,6 +25,7 @@ post_remove() {
   echo ">>> Updating module dependencies. Please wait ..."
   KERNEL_VERSION=2.6.28-LinHES
   depmod -v $KERNEL_VERSION > /dev/null 2>&1
+  sed -i~ -e '/ConvertX/d' -e '/usbfs/d' /etc/fstab
   /bin/true
 }
 
-- 
cgit v0.12