ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/addcd.sh
sparky
cvs at pld-linux.org
Fri Jul 14 22:56:10 CEST 2006
Author: sparky
Date: Fri Jul 14 22:56:06 2006
New Revision: 7524
Modified:
ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/addcd.sh
Log:
- filter out persistent-disk symlinks
Modified: ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/addcd.sh
==============================================================================
--- ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/addcd.sh (original)
+++ ppcrcd/trunk/conf.dir/usr/lib/ppcrcd/addcd.sh Fri Jul 14 22:56:06 2006
@@ -6,7 +6,10 @@
rcdroot=$(grep /media/ppcrcd /etc/fstab | awk '{print $1}')
[ "${DEVNAME}" = "$rcdroot" ] && exit
-mntdir="/media/${DEVLINKS##*/}"
+for cddev in $DEVLINKS; do
+ [[ $cddev == /dev/disk/by-* ]] && continue
+ mntdir="/media/${cddev##*/}"
+done
if [ "$ACTION" == "remove" ]; then
umount -f $mntdir >/dev/null 2>&1
More information about the pld-cvs-commit
mailing list