- Timestamp:
- Feb 21, 2006, 2:04:41 AM (19 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- a54d633
- Parents:
- 5da8aa0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
udev/Makefile
r5da8aa0 rf8f27bf9 4 4 RULESMODE=644 5 5 CONFMODE=644 6 6 7 7 8 all: install … … 17 18 install -m ${RULESMODE} 55-sound.rules ${DESTDIR}/etc/udev/rules.d/55-sound.rules 18 19 install -m ${RULESMODE} 60-persistent.rules ${DESTDIR}/etc/udev/rules.d/60-persistent.rules 19 install -m ${RULESMODE} 90-user.rules ${DESTDIR}/etc/udev/rules.d/90-user.rules20 20 install -m ${RULESMODE} 95-debug.rules ${DESTDIR}/etc/udev/rules.d/95-debug.rules 21 21 … … 48 48 49 49 mknod_devices: 50 @echo "" 51 @echo "This step will fail if your not installing as the root user" 52 @echo "If it does, you will need to create these devices manually." 53 @echo "If you get a message saying 'File exists', you can safely" 54 @echo "Ignore this step." 55 @echo "" 56 @echo "Here are the commands for you to run as the root user." 57 @echo "" 58 @echo "mknod -m 0666 ${DESTDIR}/lib/udev/devices/null c 1 3" 59 @echo "mknod -m 0600 ${DESTDIR}/lib/udev/devices/console c 5 1" 60 @mknod -m 0666 ${DESTDIR}/lib/udev/devices/null c 1 3 61 @mknod -m 0600 ${DESTDIR}/lib/udev/devices/console c 5 1 50 @if [ "$$UID" = "0" ]; then \ 51 if ! [ -e ${DESTDIR}/lib/udev/devices/null ]; then \ 52 mknod -m 0666 ${DESTDIR}/lib/udev/devices/null c 1 3 ;\ 53 fi \ 54 fi 55 @if [ "$$UID" = "0" ]; then \ 56 if ! [ -e ${DESTDIR}/lib/udev/devices/console ]; then \ 57 mknod -m 0600 ${DESTDIR}/lib/udev/devices/console c 5 1 ;\ 58 fi \ 59 fi 60 @if [ "$$UID" != "0" ]; then \ 61 if ! [ -e ${DESTDIR}/lib/udev/devices/null ]; then \ 62 echo "You will need to issue the following command as the root user" ;\ 63 echo "" ;\ 64 mknod -m 0666 ${DESTDIR}/lib/udev/devices/null c 1 3 ;\ 65 echo "" ;\ 66 fi \ 67 fi 68 @if [ "$$UID" != "0" ]; then \ 69 if ! [ -e ${DESTDIR}/lib/udev/devices/console ]; then \ 70 echo "You will need to issue the following command as the root user" ;\ 71 echo "" ;\ 72 mknod -m 0600 ${DESTDIR}/lib/udev/devices/console c 5 1 ;\ 73 fi \ 74 fi 62 75 63 76 .PHONY: all install device_dirs device_links rules scripts boot mknod_devices
Note:
See TracChangeset
for help on using the changeset viewer.