Logdev isn't working now and vol_id has been removed from udev
[bootimage-initfs.git] / etc / logdev.sh
index d80facb..34199ea 100755 (executable)
@@ -12,30 +12,30 @@ do
                        continue # skip non-removable, non-usb devices
                fi
        fi
-       DEV_NAME=`basename ${i}`
-       vol_id -x /dev/${DEV_NAME} > /tmp/vol_id.tmp
-       if [ $? != 0 ] # no file system found
-       then
+       #DEV_NAME=`basename ${i}`
+       #vol_id -x /dev/${DEV_NAME} > /tmp/vol_id.tmp
+       #if [ $? != 0 ] # no file system found
+       #then
                for j in `ls -1d ${i}/?d?[0-9] 2>/dev/null`
                do
                        DEV_NAME=`basename ${j}`
-                       vol_id -x /dev/${DEV_NAME} > /tmp/vol_id.tmp
-                       if [ $? = 0 ]
-                       then
+                       #vol_id -x /dev/${DEV_NAME} > /tmp/vol_id.tmp
+                       #if [ $? = 0 ]
+                       #then
                                #source /tmp/vol_id.tmp # might use these variables some day
                                mount /dev/${DEV_NAME} /var/logdev
                                touch /var/logdev/breakin.log
                                echo "Logging device found at ${DEV_NAME}."
                                exit 0
-                       fi
+                       #fi
                done
-       else # found file system
-               #source /tmp/vol_id.tmp # might use these variables some day
-               mount /dev/${DEV_NAME} /var/logdev
-               touch /var/logdev/breakin.log
-               echo "Logging device found at ${DEV_NAME}."
-               exit 0
-       fi
+       #else # found file system
+       #       #source /tmp/vol_id.tmp # might use these variables some day
+       #       mount /dev/${DEV_NAME} /var/logdev
+       #       touch /var/logdev/breakin.log
+       #       echo "Logging device found at ${DEV_NAME}."
+       #       exit 0
+       #fi
 done
 
 echo "No logging device found."