diff options
| author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-07-30 19:12:36 +0200 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-07-30 19:12:36 +0200 |
| commit | a5d30a3d043c099bec912134c53c8d47a0ff7850 (patch) | |
| tree | 1bd802df071e338adc077a4ca2acb1393380e4f9 | |
| parent | 4f33c88a51587681b7be1ae57cfbc43b627c6bc4 (diff) | |
| parent | 75aeefd3966895eb3cbba18bba87909c4c1d66d9 (diff) | |
| download | plan9front-a5d30a3d043c099bec912134c53c8d47a0ff7850.tar.xz | |
merge
| -rwxr-xr-x | rc/bin/9fs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rc/bin/9fs b/rc/bin/9fs index 8f38872e8..7216eae6a 100755 --- a/rc/bin/9fs +++ b/rc/bin/9fs @@ -7,7 +7,10 @@ case '' echo usage: 9fs service '[mountpoint]' >[1=2] exit usage case 9fat - part=`{ls /dev/fs/9fat /dev/sd*/9fat >[2]/dev/null} + if(~ $#2 1) + part=`{ls $2 >[2]/dev/null} + if not + part=`{ls /dev/fs/9fat /dev/sd*/9fat >[2]/dev/null} if(~ $#part 0) { echo 'no 9fat partition found' >[1=2] exit no.9fat |
