/[gentoo-x86]/eclass/udev.eclass
Gentoo

Diff of /eclass/udev.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.9 Revision 1.10
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/udev.eclass,v 1.9 2013/01/29 15:33:37 ssuominen Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/udev.eclass,v 1.10 2013/03/24 15:50:19 ssuominen Exp $
4 4
5# @ECLASS: udev.eclass 5# @ECLASS: udev.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# udev-bugs@gentoo.org 7# udev-bugs@gentoo.org
8# @BLURB: Default eclass for determining udev directories. 8# @BLURB: Default eclass for determining udev directories.
96 ( 96 (
97 insinto "$(_udev_get_udevdir)"/rules.d 97 insinto "$(_udev_get_udevdir)"/rules.d
98 newins "${@}" 98 newins "${@}"
99 ) 99 )
100} 100}
101
102# @FUNCTION: udev_reload
103# @DESCRIPTION:
104# Execute udevadm control --reload to reload rules and databases
105udev_reload() {
106 if [[ ${ROOT} != "" ]] && [[ ${ROOT} != "/" ]]; then
107 return 0
108 fi
109
110 if [[ -d ${ROOT}/run/udev ]]; then
111 ebegin "Running udev control --reload for reloading rules and databases"
112 udevadm control --reload
113 eend $?
114 fi
115}

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20