shithub: riscv

Download patch

ref: 79e59f5beb849b2e1a133d6443c0c48787658cae
parent: 76c321438945be7bb9eca6a954a9040ce92e2ddf
author: cinap_lenrek <cinap_lenrek@localhost>
date: Wed Jul 20 06:26:56 EDT 2011

fshalt: have to bind

--- a/rc/bin/fshalt
+++ b/rc/bin/fshalt
@@ -33,6 +33,9 @@
 	sleep 2
 }
 
+# for scram
+bind -b '#P' /dev
+
 # halting (binaries we run can't be on the fs we're halting)
 ramfs
 builtin cd /tmp
@@ -76,10 +79,7 @@
 		echo rebooting...
 		echo reboot >'#c/reboot'
 	}
-	if not {
-		bind -b '#P' /dev
-		scram
-	}
+	if not scram
 }
 
 x
--