tar xvf $LFS/udev-113.tar.bz2 cd udev-113 tar -xvf $LFS/udev-config-6.3.tar.bz2 install -dv /lib/{firmware,udev/devices/{pts,shm}} mknod -m0666 /lib/udev/devices/null c 1 3 ln -sv /proc/self/fd /lib/udev/devices/fd ln -sv /proc/self/fd/0 /lib/udev/devices/stdin ln -sv /proc/self/fd/1 /lib/udev/devices/stdout ln -sv /proc/self/fd/2 /lib/udev/devices/stderr ln -sv /proc/kcore /lib/udev/devices/core make EXTRAS="`echo extras/*/`"
测试:
代码:
make test
这里test可能有错误,不必理会。
代码:
make DESTDIR=/ EXTRAS="`echo extras/*/`" install cp -v etc/udev/rules.d/[0-9]* /etc/udev/rules.d/ cd udev-config-6.3 make install make install-doc make install-extra-doc cd .. install -m644 -v docs/writing_udev_rules/index.html \ /usr/share/doc/udev-113/index.html cd .. rm -rf udev-113