1 # hdw - linux udev package
3 # author: hackbard@hackdaworld.dyndns.org
7 # [D] udev-059.tar.bz2 http://www.kernel.org/pub/linux/utils/kernel/hotplug/
9 make_conf="udevdir=/dev $make_conf"
10 install_conf="udevdir=/dev"
13 [ "$hdw_status" = "1" ] && u_root=/${s1_prefix}
15 if [ "$hdw_status" = "1" ] ; then
16 make_conf="prefix=$prefix etcdir=$prefix/etc $make_conf"
17 install_conf="DESTDIR=$prefix $install_conf"
21 # subsys folder for locking
22 mkdir -p $root/var/lock/subsys
24 rm -rf $docdir ; mkdir -p $docdir
25 cp -r docs FAQ HOWTO-udev_for_dev README* TODO $docdir
27 mkdir -p $u_root/etc/udev/{rules,permissions}.d
28 cp etc/udev/udev.rules* $u_root/etc/udev/rules.d/
29 cp etc/udev/udev.permissions $u_root/etc/udev/permissions.d/
30 mv $u_root/etc/udev/rules.d/udev.rules{,.orig}
31 ln -svf udev.rules.devfs $u_root/etc/udev/rules.d/udev.rules
33 if [ "$hdw_status" = "2" ] ; then
34 cp $confdir/init_udev.sh $u_root/etc/init.d/udev
35 chmod 750 $u_root/etc/init.d/udev