|
|
|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
|
|
#
|
|
|
|
# Filename: package/.../udev/udev.conf
|
|
|
|
# Copyright (C) 2007 - 2009 The OpenSDE Project
|
|
|
|
#
|
|
|
|
# More information can be found in the files COPYING and README.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; version 2 of the License. A copy of the
|
|
|
|
# GNU General Public License can be found in the file COPYING.
|
|
|
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
|
|
|
|
|
|
|
if [ "$prefix_auto" = 1 ] ; then
|
|
|
|
prefix=
|
|
|
|
set_confopt
|
|
|
|
fi
|
|
|
|
|
|
|
|
udev_devices() {
|
|
|
|
local devdir="$root/lib/udev/devices"
|
|
|
|
local node=
|
|
|
|
|
|
|
|
echo "Creating base nodes ..."
|
|
|
|
mkdir -p "$devdir"
|
|
|
|
$confdir/create_nodes.sh $devdir < $confdir/udev_device_nodes.txt | while read node; do
|
|
|
|
add_flist "$node"
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
udev_rules() {
|
|
|
|
local rulesd=$root$libdir/udev/rules.d
|
|
|
|
|
|
|
|
echo "Installing our .rules files..."
|
|
|
|
|
|
|
|
for x in $confdir/rules/*.rules; do
|
|
|
|
[ ! -e "rules/rules.d/${x##*/}" ] || echo_warning "${x##*/}: conflict detected."
|
|
|
|
install -v -m 644 $x $rulesd/
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
hook_add postmake 5 'udev_devices'
|
|
|
|
hook_add postmake 6 'udev_rules'
|