git: 9front

Download patch

ref: 6247bc5a8aa1fc15bf421f8fd9201a003d5b1e50
parent: b2aa9b79da959fb1f5b75da492d8f4340ed1bab9
author: stanley lieber <stanley.lieber@gmail.com>
date: Thu Jan 5 07:36:36 EST 2012

nusbrc: revert

--- a/rc/bin/nusbrc
+++ b/rc/bin/nusbrc
@@ -5,8 +5,6 @@
 if(! bind -a '#u' /dev)
 	exit
 
-mkdir -p -m 700 '#σc/usbnet'
-
 @{
 	rfork ne
 	fn attach {
@@ -16,7 +14,6 @@
 		case *02
 			# serial and ethernet
 			nusb/serial $1
-			nusb/ether $1
 		case *03
 			# handled /sys/src/9/boot/nusbrc
 			# nusb/kb $1
@@ -28,13 +25,9 @@
 		}
 	}
 	fn detach {
-		switch($4){
-		case *02
-			rm -f '#σ/usbnet/'^$1.*
-		}
+		# handled /sys/src/9/boot/nusbrc
 	}
 	rc < '#σ/usb/usbevent' &
 }
 
 bind -a '#σ/usb' /dev
-bind -a '#σ/usbnet' /net
--