From: <abe...@us...> - 2016-02-03 21:20:15
|
Revision: 7505 http://sourceforge.net/p/astlinux/code/7505 Author: abelbeck Date: 2016-02-03 21:20:12 +0000 (Wed, 03 Feb 2016) Log Message: ----------- runnix-iso, /runnix script, as last resort try to mount boot disk as 'vfat' Modified Paths: -------------- branches/1.0/project/runnix-iso/target_skeleton/runnix Modified: branches/1.0/project/runnix-iso/target_skeleton/runnix =================================================================== --- branches/1.0/project/runnix-iso/target_skeleton/runnix 2016-02-03 16:01:17 UTC (rev 7504) +++ branches/1.0/project/runnix-iso/target_skeleton/runnix 2016-02-03 21:20:12 UTC (rev 7505) @@ -148,6 +148,19 @@ done fi +if [ -z "$DEVICE" ]; then + for x in $DRIVES; do + if mount -t vfat -o ro /dev/${x}1 $BASE 2>/dev/null; then + if [ -f $BASE/os/isoflag ]; then + DEVICE="${x}" + break + else + umount /dev/${x}1 + fi + fi + done +fi + hostname runnix # Loader not found This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |