From 6e110f1d640deeb5a0ce0a0594f7ac16b4afa1e2 Mon Sep 17 00:00:00 2001 From: Cecil Date: Thu, 18 Aug 2011 12:30:32 -0700 Subject: ceton:Modified udev rule to run script to set IP of ctn0. --- abs/core/ceton/PKGBUILD | 13 +++++++++---- abs/core/ceton/ctn_udev.patch | 5 +++++ abs/core/ceton/ifctn.sh | 2 ++ 3 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 abs/core/ceton/ctn_udev.patch create mode 100755 abs/core/ceton/ifctn.sh diff --git a/abs/core/ceton/PKGBUILD b/abs/core/ceton/PKGBUILD index dd69ebe..366763d 100644 --- a/abs/core/ceton/PKGBUILD +++ b/abs/core/ceton/PKGBUILD @@ -4,7 +4,7 @@ pkgname=ceton _kernver=2.6.39-LinHES pkgver=1.3 -pkgrel=2 +pkgrel=3 pkgdesc="Drivers for Ceton InfiniTV4" arch=('i686' 'x86_64') license=('GPL2') @@ -12,17 +12,22 @@ url="http://linuxtv.org/" depends=('kernel26') makedepends=(kernel-headers) install=ceton.install -source=('http://www.cetoncorp.com/firmware/ceton_infinitv_linux_driver_1_3.tar.gz') +source=('http://www.cetoncorp.com/firmware/ceton_infinitv_linux_driver_1_3.tar.gz' + 'ctn_udev.patch' 'ifctn.sh') build() { cd $startdir/src/ceton_infinitv_linux_driver # patch -p1 < ../hdpvr.diff + patch -p0 < $srcdir/ctn_udev.patch make make install mkdir -p $startdir/pkg/lib/modules/$_kernver/extra cp ctn91xx.ko $startdir/pkg/lib/modules/$_kernver/extra mkdir -p $pkgdir/etc/udev/rules.d cp 98-ctn91xx.rules $pkgdir/etc/udev/rules.d/ - + mkdir -p $pkgdir/usr/LH/bin + install -m 755 $srcdir/ifctn.sh $pkgdir/usr/LH/bin } -md5sums=('5021db6c04e2f0c2a8367d9c15827470') +md5sums=('5021db6c04e2f0c2a8367d9c15827470' + '05371fcff10a2d9058644e860f5c17ef' + '3fc4c4981d2dab54b297f17564b7729f') diff --git a/abs/core/ceton/ctn_udev.patch b/abs/core/ceton/ctn_udev.patch new file mode 100644 index 0000000..91af3ac --- /dev/null +++ b/abs/core/ceton/ctn_udev.patch @@ -0,0 +1,5 @@ +--- 98-ctn91xx.rules.orig 2011-08-18 19:17:11.000000000 +0000 ++++ 98-ctn91xx.rules 2011-08-18 19:18:54.000000000 +0000 +@@ -1 +1 @@ +-KERNEL=="ctn91xx_*", NAME="ceton/%k", MODE="0666",OWNER="root",GROUP="root" ++KERNEL=="ctn91xx_*", NAME="ceton/%k", MODE="0666",OWNER="root",GROUP="root", RUN+="/usr/LH/bin/ifctn.sh" diff --git a/abs/core/ceton/ifctn.sh b/abs/core/ceton/ifctn.sh new file mode 100755 index 0000000..7d7265d --- /dev/null +++ b/abs/core/ceton/ifctn.sh @@ -0,0 +1,2 @@ +#!/bin/bash +/sbin/ifconfig ctn0 192.168.200.254 netmask 255.255.255.0 up -- cgit v0.12