jehanne/qa/kern/devshr.rc
Giacomo Tesio 38aca7a581 first usable version of kernel and commands
After an year of hard work, this is a first "usable" version of Jehanne.
2016-11-26 03:49:29 +01:00

16 lines
318 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/cmd/rc
rfork
@{rfork n; mkdir '#σc'/testshr; ramfs -S testshr; echo 3 > '#σc'/testshr/ramfs <>[3]/srv/testshr; echo PASS > '#σ'/testshr/file }
bind '#σ' /shr
RESULT=`{cat /shr/testshr/file}
rm -fr '#σc'/testshr
rm /srv/testshr
if (~ $RESULT PASS) { echo PASS; exit PASS }
if not { echo FAIL; exit FAIL }