From 4aee2b803e7f566f6ec1796fc45bfe0023d3762a Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 28 Jun 2015 21:50:30 +0200 Subject: 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. --- sys/src/9/boot/nusbrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/src') 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 -- cgit v1.2.3