Merge pull request #524 from awigen/update-linux-flash-script
Update Linux flash script
This commit is contained in:
@@ -37,7 +37,7 @@ function enable_gautomount {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function is_attached {
|
function is_attached {
|
||||||
output=`lsblk -b --raw --output NAME,MODEL | grep 'DFU\\\\x20Disk'`
|
output=`lsblk -b --raw --output NAME,MODEL | grep 'DFU.*Disk'`
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user