summaryrefslogtreecommitdiff
path: root/testing/udev
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-05-21 00:02:00 +0000
committerroot <root@rshg054.dnsready.net>2012-05-21 00:02:00 +0000
commitd9687afd09db8b04c5ae90edf22df599532256c6 (patch)
tree80010661172356246dbc1eb904f689876a5fa521 /testing/udev
parentaad2fba0fc475162b566f1577d8e7a020cd9e80d (diff)
Mon May 21 00:02:00 UTC 2012
Diffstat (limited to 'testing/udev')
-rw-r--r--testing/udev/PKGBUILD14
-rw-r--r--testing/udev/initcpio-hooks-udev21
-rw-r--r--testing/udev/initcpio-install-udev6
3 files changed, 26 insertions, 15 deletions
diff --git a/testing/udev/PKGBUILD b/testing/udev/PKGBUILD
index ec1a68163..c57cb8528 100644
--- a/testing/udev/PKGBUILD
+++ b/testing/udev/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 157979 2012-04-30 12:31:14Z tomegun $
+# $Id: PKGBUILD 159251 2012-05-19 14:53:31Z dreisner $
# Maintainer: Tom Gundersen <teg@jklm.no>
# Contributor: Aaron Griffin <aaron@archlinux.org>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
@@ -6,7 +6,7 @@
pkgname=udev
pkgver=182
-pkgrel=2
+pkgrel=3
pkgdesc="The userspace dev tools (udev)"
depends=('util-linux' 'glib2' 'kmod' 'pciutils' 'usbutils' 'bash' 'acl')
install=udev.install
@@ -22,6 +22,11 @@ url="http://git.kernel.org/?p=linux/hotplug/udev.git;a=summary"
backup=(etc/udev/udev.conf)
groups=('base')
options=(!makeflags !libtool)
+md5sums=('023877e6cc0d907994b8c648beab542b'
+ '0fa3eac115ad0140af1582d941b15f2c'
+ '94b816896bf23275c0598fc8e07270c3'
+ 'e433c11d38cf4f877b41d06e2753ebe0'
+ 'e6faf4c3fe456f10d8efd2487d5e3cb7')
build() {
cd $srcdir/$pkgname-$pkgver
@@ -67,8 +72,3 @@ package() {
s#GROUP="cdrom"#GROUP="optical"#g' $i
done
}
-md5sums=('023877e6cc0d907994b8c648beab542b'
- '0fa3eac115ad0140af1582d941b15f2c'
- '94b816896bf23275c0598fc8e07270c3'
- 'a4dd853050bf2e0ae6b2e3d2c75499c2'
- 'd2b16edc6d806b5dafdbbad43ae5a3de')
diff --git a/testing/udev/initcpio-hooks-udev b/testing/udev/initcpio-hooks-udev
index 87aa7960f..313a88130 100644
--- a/testing/udev/initcpio-hooks-udev
+++ b/testing/udev/initcpio-hooks-udev
@@ -1,9 +1,20 @@
-# vim: set ft=sh:
-run_hook ()
-{
- msg -n ":: Triggering uevents..."
+#!/usr/bin/ash
+
+run_earlyhook() {
+ /usr/lib/udev/udevd --daemon --resolve-names=never
+ udevd_running=1
+}
+
+run_hook() {
+ msg ":: Triggering uevents..."
udevadm trigger --action=add --type=subsystems
udevadm trigger --action=add --type=devices
udevadm settle
- msg "done."
}
+
+run_cleanuphook() {
+ udevadm control --exit
+ udevadm info --cleanup-db
+}
+
+# vim: set ft=sh ts=4 sw=4 et:
diff --git a/testing/udev/initcpio-install-udev b/testing/udev/initcpio-install-udev
index 6bc9cfb28..e33664459 100644
--- a/testing/udev/initcpio-install-udev
+++ b/testing/udev/initcpio-install-udev
@@ -1,9 +1,7 @@
#!/bin/bash
build() {
- FILES="/etc/udev/udev.conf"
- SCRIPT="udev"
-
+ add_file "/etc/udev/udev.conf"
add_binary /usr/lib/udev/udevd
add_binary /usr/bin/udevadm
@@ -13,6 +11,8 @@ build() {
for tool in ata_id scsi_id; do
add_file "/usr/lib/udev/$tool"
done
+
+ add_runscript
}
help() {