diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2012-09-25 18:59:37 +0000 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2012-09-25 18:59:37 +0000 |
commit | 14377f4ac060f66ca3f7c55388d148428fa401d3 (patch) | |
tree | 1f9d6253d5a7e058666f33d0da3eefadc552debb /udev-lfs/contrib/debian/write_cd_aliases | |
parent | a764ff2e68cd9ca7fb76ceec34cb6e4a1a906446 (diff) |
Update LFS target architectures.
Fix a url in pkgmgfor LFS.
Tweak a debian udev script for LFS.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9998 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'udev-lfs/contrib/debian/write_cd_aliases')
-rw-r--r-- | udev-lfs/contrib/debian/write_cd_aliases | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/udev-lfs/contrib/debian/write_cd_aliases b/udev-lfs/contrib/debian/write_cd_aliases index 6443b6dcf..ea8eeb7d8 100644 --- a/udev-lfs/contrib/debian/write_cd_aliases +++ b/udev-lfs/contrib/debian/write_cd_aliases @@ -1,12 +1,21 @@ #!/bin/sh -e +# Updated for LFS by B. Dubbs, 2012-09-23 +# Fix RULES_LOCK location + + RULES_FILE="/etc/udev/rules.d/82-persistent-cd.rules" ############################################################################## lock_rules_file() { - RULES_LOCK="/dev/.udev/.lock-${RULES_FILE##*/}" + RULES_LOCK="/run/udev/lock-${RULES_FILE##*/}" + + if [ ! -d /run/udev/ ]; then + echo "write_cd_aliases: /run/udev does not exist!" >&2 + exit 2 + fi - retry=30 + retry=10 while ! mkdir $RULES_LOCK 2> /dev/null; do if [ $retry -eq 0 ]; then echo "Cannot lock $RULES_FILE!" >&2 |