[gnome-ostree] Add a trigger for udevadm hwdb



commit 478cc98dc4dd2c5b6d0bf02678b34ccca81e9803
Author: Colin Walters <walters verbum org>
Date:   Thu Aug 15 06:09:44 2013 -0400

    Add a trigger for udevadm hwdb
    
    Since things now kind of rely on the hardware database.

 Makefile-ostbuild.am               |    1 +
 src/triggers/0071udev-hwdb.trigger |   23 +++++++++++++++++++++++
 2 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/Makefile-ostbuild.am b/Makefile-ostbuild.am
index 0976ad0..6a3d23b 100644
--- a/Makefile-ostbuild.am
+++ b/Makefile-ostbuild.am
@@ -48,6 +48,7 @@ triggers_SCRIPTS = \
        src/triggers/0040gdk-pixbuf.trigger \
        src/triggers/0060immodules.trigger \
        src/triggers/0070pango.trigger \
+       src/triggers/0071udev-hwdb.trigger \
        src/triggers/0080gtk+.trigger \
        src/triggers/0090desktop-database.trigger \
        src/triggers/0100fontconfig-cache.trigger \
diff --git a/src/triggers/0071udev-hwdb.trigger b/src/triggers/0071udev-hwdb.trigger
new file mode 100755
index 0000000..3b70e24
--- /dev/null
+++ b/src/triggers/0071udev-hwdb.trigger
@@ -0,0 +1,23 @@
+#!/bin/sh
+# Post-installation hook for udev.  -*- mode: sh -*-
+#
+# Written by Colin Walters <walters verbum org>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the
+# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
+if test -x "$(which udevadm 2>/dev/null)"; then
+    exec udevadm hwdb --update
+fi


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]