/rc/bin/9fs: add partition argument for 9fat
This commit is contained in:
parent
fcc5e75d07
commit
75aeefd396
1 changed files with 4 additions and 1 deletions
|
@ -7,7 +7,10 @@ case ''
|
||||||
echo usage: 9fs service '[mountpoint]' >[1=2]
|
echo usage: 9fs service '[mountpoint]' >[1=2]
|
||||||
exit usage
|
exit usage
|
||||||
case 9fat
|
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) {
|
if(~ $#part 0) {
|
||||||
echo 'no 9fat partition found' >[1=2]
|
echo 'no 9fat partition found' >[1=2]
|
||||||
exit no.9fat
|
exit no.9fat
|
||||||
|
|
Loading…
Reference in a new issue