git: 9front

Download patch

ref: d8e5bfc8ddb2cc7954bdd183d987685a467bdd6a
parent: dfcc034eba7d499e3300fad9cb7b42055320f079
author: stanley lieber <stanley.lieber@gmail.com>
date: Mon Jul 30 06:58:17 EDT 2012

/rc/bin/9fs: add partition argument for 9fat

--- 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
--