Subversion Repositories livecd

Rev

Rev 166 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 166 Rev 167
Line 341... Line 341...
341
      mount -t cifs $CIFSROOT $DIR -o ro,$CIFSOPTS
341
      mount -t cifs $CIFSROOT $DIR -o ro,$CIFSOPTS
342
      # enable kernel warnings
342
      # enable kernel warnings
343
      echo "$PRINTK" >/proc/sys/kernel/printk
343
      echo "$PRINTK" >/proc/sys/kernel/printk
344
   fi
344
   fi
345
 
345
 
-
 
346
   PRINTK=`cat /proc/sys/kernel/printk`
-
 
347
   echo "0" >/proc/sys/kernel/printk
346
   if [ "$DIR" = "" ]; then
348
   if [ "$DIR" = "" ]; then
347
       list_block_devices | while read DEVICE; do
349
       list_block_devices | while read DEVICE; do
348
	   DIR="/$1/`basename $DEVICE`"
350
	   DIR="/$1/`basename $DEVICE`"
349
	   mount_device $DEVICE $DIR
351
	   mount_device $DEVICE $DIR
350
	   if [ $? -ne 0 ]; then continue; fi
352
	   if [ $? -ne 0 ]; then continue; fi
351
	   # FOUND=`ls -A1d $DIR/livecd.sgn $DIR/*/livecd.sgn 2>/dev/null | head -n 1`
353
	   # FOUND=`find $DIR -name livecd.sgn -type f | head -n 1`
352
	   FOUND=`find $DIR -name livecd.sgn -type f | head -n 1`
354
	   FOUND=`ls -A1d $DIR/livecd.sgn $DIR/*/livecd.sgn 2>/dev/null | head -n 1`
353
	   if [ "$FOUND" = "" ]; then umount $DIR 2>/dev/null; rmdir $DIR 2>/dev/null
355
	   if [ "$FOUND" = "" ]; then umount $DIR 2>/dev/null; rmdir $DIR 2>/dev/null
354
	   else dirname "$FOUND"; return 1; fi
356
	   else dirname "$FOUND"; return 1; fi
355
       done
357
       done
356
   else
358
   else
357
      # FOUND=`ls -A1d $DIR/livecd.sgn $DIR/*/livecd.sgn 2>/dev/null | head -n 1`
359
       # FOUND=`find $DIR -name livecd.sgn -type f | head -n 1`
358
       FOUND=`find $DIR -name livecd.sgn -type f | head -n 1`
360
       FOUND=`ls -A1d $DIR/livecd.sgn $DIR/*/livecd.sgn 2>/dev/null | head -n 1`
359
       if [ "$FOUND" != "" ]; then 
361
       if [ "$FOUND" != "" ]; then 
360
	   dirname "$FOUND"
362
	   dirname "$FOUND"
361
       fi
363
       fi
362
   fi
364
   fi
-
 
365
   echo "$PRINTK" >/proc/sys/kernel/printk	   
363
 
366
 
364
}
367
}
365
 
368
 
366
# ===========================================================
369
# ===========================================================
367
# hardware preparation functions
370
# hardware preparation functions