]> hackdaworld.org Git - hdw-linux/hdw-linux.git/blob - udev
86d18bc4bf9efebf6c38c8b3110cf8f10d53198d
[hdw-linux/hdw-linux.git] / udev
1 # hdw - linux udev package
2 #
3 # author: hackbard@hackdaworld.dyndns.org
4 #
5 # [V] 059
6 # [S] 1-9 2-15
7 # [D] udev-059.tar.bz2 http://www.kernel.org/pub/linux/utils/kernel/hotplug/
8
9 make_conf="udevdir=/dev $make_conf"
10 install_conf="udevdir=/dev"
11
12 u_root=$root
13 [ "$hdw_status" = "1" ] && u_root=/${s1_prefix}
14
15 if [ "$hdw_status" = "1" ] ; then
16         make_conf="prefix=$prefix etcdir=$prefix/etc $make_conf"
17         install_conf="DESTDIR=$prefix $install_conf"
18 fi
19
20 post_install()  {
21         # subsys folder for locking
22         mkdir -p $root/var/lock/subsys
23         # documentation
24         rm -rf $docdir ; mkdir -p $docdir
25         cp -r docs FAQ HOWTO-udev_for_dev README* TODO $docdir
26         # config stuff
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
32         # init script
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
36         fi
37                 }