shithub: riscv

Download patch

ref: a5d30a3d043c099bec912134c53c8d47a0ff7850
parent: 4f33c88a51587681b7be1ae57cfbc43b627c6bc4
parent: 75aeefd3966895eb3cbba18bba87909c4c1d66d9
author: cinap_lenrek <[email protected]>
date: Mon Jul 30 15:12:36 EDT 2012

merge

--- a/rc/bin/9fs
+++ b/rc/bin/9fs
@@ -7,7 +7,10 @@
 	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