Commits

Anonymous committed a131c82

Remove install.sh. Simplify README.

Comments (0)

Files changed (2)

-o9fs: A 9P capable virtual filesystem for OpenBSD
+N.B.: all commands are relative to o9fs base directory.
 
-Getting the source
-------------------
-For now, o9fs is only distributed in source form in a mercurial 
-repository living at http://src.oitobits.net/o9fs. Then, 
+1. Compile
+# (cd mount && make); make
 
-hg clone http://src.oitobits.net/o9fs
+2. Load
+# make load
+N.B. securelevel needs to be <= 0.
 
-will download the source to a o9fs dir.
+3. Mount
+For a server in the network, do:
+# mount/mount_o9fs 'address!port' mtpt
 
-Compiling
----------
-Compiling o9fs consists of building the kernel module and the mount 
-program. Kernel sources are required [1].
+For a server in a unix socket, do:
+# mount/mount_o9fs path mtpt
 
-building module:
-cd /path/to/o9fs
-make
+4. Play
 
-building mount program:
-cd /path/to/o9fs/mount
-make
-
-Installing
-----------
-Installating is done with
-
-sh /path/to/o9fs/install.sh
-
-which will tell you everything you should need.
-You should only remember: if you move o9fs to a different place from
-where it has been installed, you have to rerun the installation
-process.
-
-Running
--------
-Loading the kernel module requires a securelevel <= 0.
-
-cd /path/to/o9fs
-make load
-
-The mount program is mount_o9fs and should be used like
-
-mount_o9fs 'net!address!port' mountpoint
-
-for mounting a fileserver over the network (tcp), or
-
-mount_o9fs 'unix!path' mountpoint
-
-for mounting a fileserver served by a unix socket.
-
----
-
-Comments, criticisms and suggestion are more than welcome.
-
-Iruata Souza - iru.muzgo at gmail.com - http://iru.oitobits.net

install.sh

-#!/bin/sh
-# installs o9fs stuff in kernel source under /usr/src/sys
-# written by Iruata Souza
-# See LICENSE
-# JUL/2007
-
-o9fsroot=miscfs/o9fs
-srcroot=/usr/src
-
-addfiles() {
-	cp $srcroot/sys/conf/files $srcroot/sys/conf/files.old
-
-	[[ -f files.o9fs ]] && rm -f files.o9fs
-
-	for f in *.c; do
-		[[ "$f" == "o9fs_lkm.c" ]] && continue
-		echo "file $o9fsroot/$f		o9fs" >> files.o9fs
-	done
-
-	exist=$(grep o9fs $srcroot/sys/conf/files)
-	[[ ! -z $exist ]] && return 
-
-	echo "# o9fs" >> $srcroot/sys/conf/files
-	cat files.o9fs >> $srcroot/sys/conf/files
-}
-
-patch() {
-	cd $srcroot
-	patch -p1 < sys/$o9fsroot/openbsd-headers.diff
-}
-
-echo "Installing o9fs source in a kernel tree under $srcroot...
-I will make a symlink $srcroot/$o9fsroot pointing to `pwd` (here)
-and add o9fs sources to $srcroot/sys/conf/files
-do you want me to continue? [y/n]"
-read ans
-
-[[ "$ans" != "y" ]]  && exit 0
-
-ln -s `pwd` $srcroot/sys/$o9fsroot
-addfiles
-
-echo
-echo "o9fs installed under $srcroot/$o9fsroot
-You should now edit your kernel configuration and add
-
-option O9FS
-"