From 14377f4ac060f66ca3f7c55388d148428fa401d3 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Tue, 25 Sep 2012 18:59:37 +0000 Subject: 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 --- udev-lfs/contrib/debian/write_cd_aliases | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'udev-lfs/contrib/debian') 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 -- cgit v1.2.3-54-g00ecf