diff options
author | Britney Fransen <brfransen@gmail.com> | 2011-08-09 22:54:24 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2011-08-09 22:54:24 (GMT) |
commit | c59e88df3414c0111ba3a10fd7740d4b4f6bb798 (patch) | |
tree | b833671520f11c12a8400f5a42ec755cf014f9ab | |
parent | 6ff88e610f6c6e25c02ec901ffaa6132161fd2a2 (diff) | |
download | linhes_pkgbuild-c59e88df3414c0111ba3a10fd7740d4b4f6bb798.zip linhes_pkgbuild-c59e88df3414c0111ba3a10fd7740d4b4f6bb798.tar.gz linhes_pkgbuild-c59e88df3414c0111ba3a10fd7740d4b4f6bb798.tar.bz2 |
udev: add rules to symlink dvd/cd
-rw-r--r-- | abs/core/udev/81-LinHES.rules | 19 | ||||
-rw-r--r-- | abs/core/udev/PKGBUILD | 12 | ||||
-rw-r--r-- | abs/core/udev/changelog | 3 |
3 files changed, 30 insertions, 4 deletions
diff --git a/abs/core/udev/81-LinHES.rules b/abs/core/udev/81-LinHES.rules index 5e324d1..112c46d 100644 --- a/abs/core/udev/81-LinHES.rules +++ b/abs/core/udev/81-LinHES.rules @@ -21,3 +21,22 @@ SUBSYSTEM=="sound", RUN+="/sbin/modprobe snd-pcm-oss" SUBSYSTEM=="sound", RUN+="/sbin/modprobe snd-seq-oss" +##################################### +###### CD/DVD symlinks - begin +##################################### +ACTION=="add|change", SUBSYSTEMS=="ide", KERNEL=="hd[a-z]", IMPORT="cdrom_id --export $tempnode" +ACTION=="add|change", SUBSYSTEMS=="scsi", KERNEL=="sr[0-9]*", IMPORT="cdrom_id --export $tempnode" +ACTION=="add|change", SUBSYSTEMS=="scsi", KERNEL=="scd[a-z]", IMPORT="cdrom_id --export $tempnode" +ENV{ID_CDROM}=="?*", SYMLINK+="cd/cdrom-%b" +ENV{ID_CDROM_CD_RW}=="?*", SYMLINK+="cd/cdrw-%b" +ENV{ID_CDROM_DVD}=="?*", SYMLINK+="cd/dvd-%b" +ENV{ID_CDROM_DVD_R}=="?*", SYMLINK+="cd/dvdrw-%b" +ACTION=="add|change", SUBSYSTEMS=="ide", KERNEL=="hd[a-z]", ATTR{removable}=="1", ATTRS{media}=="cdrom*", RUN+="cdsymlinks.sh" +ACTION=="add|change", SUBSYSTEMS=="scsi", KERNEL=="sr[0-9]*", ATTRS{type}=="5", RUN+="cdsymlinks.sh" +ACTION=="add|change", SUBSYSTEMS=="scsi", KERNEL=="sg[0-9]*", ATTRS{type}=="5", RUN+="cdsymlinks.sh" +ACTION=="remove", SUBSYSTEMS=="block", KERNEL=="hd[a-z]", RUN+="cdsymlinks.sh" +ACTION=="remove", SUBSYSTEMS=="block", KERNEL=="sr[0-9]*", RUN+="cdsymlinks.sh" +ACTION=="remove", SUBSYSTEMS=="block", KERNEL=="sg[0-9]*", RUN+="cdsymlinks.sh" +##################################### +###### CD/DVD symlinks - end +##################################### diff --git a/abs/core/udev/PKGBUILD b/abs/core/udev/PKGBUILD index f37d158..996bf6a 100644 --- a/abs/core/udev/PKGBUILD +++ b/abs/core/udev/PKGBUILD @@ -7,7 +7,7 @@ pkgbase="udev" pkgname=('udev' 'udev-compat') pkgver=171 -pkgrel=3 +pkgrel=4 arch=(i686 x86_64) url="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html" license=('GPL') @@ -19,7 +19,8 @@ source=(http://www.kernel.org/pub/linux/utils/kernel/hotplug/$pkgbase-$pkgver.ta 81-arch.rules 81-LinHES.rules static-audio-nodes-group.patch - static-nodes-permissions.patch) + static-nodes-permissions.patch + cdsymlinks.sh) build() { cd $srcdir/$pkgbase-$pkgver @@ -48,6 +49,8 @@ package_udev() { install -D -m644 $srcdir/81-arch.rules $pkgdir/lib/udev/rules.d/81-arch.rules # Install LinHES rules install -D -m644 $srcdir/81-LinHES.rules $pkgdir/lib/udev/rules.d/81-LinHES.rules + # install cdsymlinks.sh + install -D -m755 $srcdir/cdsymlinks.sh $pkgdir/lib/udev/cdsymlinks.sh # create framebuffer blacklist mkdir -p $pkgdir/etc/modprobe.d/ @@ -100,6 +103,7 @@ package_udev-compat() { } md5sums=('bdf4617284be2ecac11767437417e209' '6ee44e3feb8e0f037947e7d4ca273f12' - '53dbdd039979ef87cf45ae0571be2fd0' + 'd931178ca56f98f21f733fe535684ef8' '4f625aea95a5597afd8cdf189421f193' - 'f9e50b8dfcd2215f5423ff9bc04ecf68') + 'f9e50b8dfcd2215f5423ff9bc04ecf68' + '2e808ee78d237c478b57af2a68d43769') diff --git a/abs/core/udev/changelog b/abs/core/udev/changelog index e5da487..3112650 100644 --- a/abs/core/udev/changelog +++ b/abs/core/udev/changelog @@ -2,3 +2,6 @@ - Added changelog - Added 81-LinHES.rules - Added 81-LinHES.rules to PKGBUILD + +8/9/11 Britney Fransen +- Add cdsymlinks.sh to PKGBUILD |