r7569 - in trunk/BOOK: . chapter01 chapter03 chapter06

Randy McMurchy randy at linuxfromscratch.org
Mon May 1 08:58:15 PDT 2006


archaic at linuxfromscratch.org wrote these words on 05/01/06 10:46 CST:

> +cp &udev-config;/05-udev-early.rules /etc/udev/rules.d/
> +cp &udev-config;/25-lfs.rules /etc/udev/rules.d/
> +cp &udev-config;/60-persistent-storage.rules /etc/udev/rules.d/
> +cp &udev-config;/81-cdrom.rules /etc/udev/rules.d/
> +cp &udev-config;/83-cdrom-symlinks.rules /etc/udev/rules.d/
> +cp &udev-config;/90-bug.rules /etc/udev/rules.d/</userinput></screen>

Instead of the above, wouldn't it be better to show that we know how
to economize commands by using the following syntax:

cp -v &udev-config;/05-udev-early.rules &udev-config;/25-lfs.rules \
      &udev-config;/60-persistent-storage.rules &udev-config;/81-cdrom.rules \
      &udev-config;/83-cdrom-symlinks.rules &udev-config;/90-bug.rules \
    /etc/udev/rules.d/

Or, for clarity:

cp -v &udev-config;/05-udev-early.rules \
      &udev-config;/25-lfs.rules \
      &udev-config;/60-persistent-storage.rules \
      &udev-config;/81-cdrom.rules \
      &udev-config;/83-cdrom-symlinks.rules \
      &udev-config;/90-bug.rules \
    /etc/udev/rules.d/

-- 
Randy

rmlscsi: [bogomips 1003.28] [GNU ld version 2.16.1] [gcc (GCC) 4.0.3]
[GNU C Library stable release version 2.3.6] [Linux 2.6.14.3 i686]
10:52:00 up 36 days, 22:29, 2 users, load average: 0.29, 0.27, 0.30



More information about the lfs-book mailing list