summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-06-28 21:50:30 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2015-06-28 21:50:30 +0200
commit4aee2b803e7f566f6ec1796fc45bfe0023d3762a (patch)
tree001767bf098800e155f2c669ec2f7b981e45d843
parent37156fb0b2a2f15614a34875c23892c6d9b95f90 (diff)
nusbrc: handle fat formated usb drives without partition table
on some usb drives, there is no dos partition table, so check the filesystem type and consider the whole drive.
-rwxr-xr-xsys/src/9/boot/nusbrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/boot/nusbrc b/sys/src/9/boot/nusbrc
index 28e467a71..56ee25332 100755
--- a/sys/src/9/boot/nusbrc
+++ b/sys/src/9/boot/nusbrc
@@ -39,7 +39,7 @@ if(! nusb/usbd)
devs=sdU^($1 $5)
for(dev in $devs $devs.*) if(test -d $dev) {
diskparts $dev
- for(part in $dev/dos* $dev/9fat) if(test -r $part) {
+ for(part in $dev/dos* $dev/9fat* $dev/data) if(test -r $part && ~ `{fstype $part} dos) {
mkdir -m 0700 '#σc/'^$dev || exit
{dossrv -s -f $part &} <[0=1] |
echo 0 >'#σc/'^$dev/dos