diff options
author | stanley lieber <stanley.lieber@gmail.com> | 2011-04-19 01:58:29 +0000 |
---|---|---|
committer | stanley lieber <stanley.lieber@gmail.com> | 2011-04-19 01:58:29 +0000 |
commit | 18e9fc3615a59cc447ab81477c75c0aad91c869d (patch) | |
tree | 7110ed65626269cc06e2856000f06ba36a69695d /sys/src/9 | |
parent | 0cb5b3181cfe3d545860bcb8bbf1d0031a29cb21 (diff) |
usb driver does not present partition data via the ctl file. obtain partition data by performing ls on /dev/sd* directories.
Diffstat (limited to 'sys/src/9')
-rw-r--r-- | sys/src/9/boot/local.rc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/boot/local.rc b/sys/src/9/boot/local.rc index 253c8692f..de205b86d 100644 --- a/sys/src/9/boot/local.rc +++ b/sys/src/9/boot/local.rc @@ -5,7 +5,7 @@ fn showlocaldevs{ for(c in /dev/sd*/ctl){ d=`{echo $c | sed 's,/ctl,,g'} echo $d':' `{sed 's/inquiry[ ]+//g; q' $c} - for(i in `{awk '/^part/{print $2}' $c}) + for(i in `{ls -p $d | grep -v -e 'ctl|raw'}) echo $d'/'$i echo } |