Changeset f8f27bf9


Ignore:
Timestamp:
Feb 21, 2006, 2:04:41 AM (17 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
a54d633
Parents:
5da8aa0
Message:

r1024@server (orig r1022): jim | 2006-01-08 01:32:19 -0800

r1314@server: jim | 2006-01-08 01:31:52 -0800
Updated Makefile


File:
1 edited

Legend:

Unmodified
Added
Removed
  • udev/Makefile

    r5da8aa0 rf8f27bf9  
    44RULESMODE=644
    55CONFMODE=644
     6
    67
    78all: install
     
    1718        install -m ${RULESMODE} 55-sound.rules ${DESTDIR}/etc/udev/rules.d/55-sound.rules
    1819        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.rules
    2020        install -m ${RULESMODE} 95-debug.rules ${DESTDIR}/etc/udev/rules.d/95-debug.rules
    2121
     
    4848
    4949mknod_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
    6275
    6376.PHONY: all install device_dirs device_links rules scripts boot mknod_devices
Note: See TracChangeset for help on using the changeset viewer.