Set up root home for ssh
authorRonald G. Minnich <rminnich@gmail.com>
Tue, 9 Feb 2016 20:59:25 +0000 (12:59 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 9 Feb 2016 23:11:35 +0000 (18:11 -0500)
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/kfs/mountroot [new file with mode: 0755]
kern/kfs/root [deleted file]
kern/kfs/root/.ssh/.empty [new file with mode: 0644]

diff --git a/kern/kfs/mountroot b/kern/kfs/mountroot
new file mode 100755 (executable)
index 0000000..80e4069
--- /dev/null
@@ -0,0 +1,37 @@
+#!/bin/ash
+#
+# root [[REMOTE_NAME] [SRVNAME]]
+#
+# remote name, selects the UFS server from the else-if below
+# srv name: the name of the chan in #s
+#
+# when run with no args, this will also ifconfig and mount ufs for qemu
+
+REMOTE=qemu
+if [ "$#" -ge "1" ]
+then
+       REMOTE=$1
+fi
+
+SRVNAME=$REMOTE-ufs
+if [ "$#" -ge "2" ]
+then
+       SRVNAME=$2
+fi
+
+if [ "x$REMOTE" = "xc75" ]
+then
+       srv 'tcp!169.229.49.175!1025' $SRVNAME
+elif [ "x$REMOTE" = "xa8" ]
+then
+       srv 'tcp!169.229.49.48!1025' $SRVNAME
+elif [ "x$REMOTE" = "xqemu" ]
+then
+       srv 'tcp!10.0.2.2!1025' $SRVNAME
+else
+       echo "Unknown remote: $REMOTE!"
+       exit
+fi
+
+mount -a -c /srv/$SRVNAME /mnt
+ls /mnt
diff --git a/kern/kfs/root b/kern/kfs/root
deleted file mode 100755 (executable)
index 80e4069..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/ash
-#
-# root [[REMOTE_NAME] [SRVNAME]]
-#
-# remote name, selects the UFS server from the else-if below
-# srv name: the name of the chan in #s
-#
-# when run with no args, this will also ifconfig and mount ufs for qemu
-
-REMOTE=qemu
-if [ "$#" -ge "1" ]
-then
-       REMOTE=$1
-fi
-
-SRVNAME=$REMOTE-ufs
-if [ "$#" -ge "2" ]
-then
-       SRVNAME=$2
-fi
-
-if [ "x$REMOTE" = "xc75" ]
-then
-       srv 'tcp!169.229.49.175!1025' $SRVNAME
-elif [ "x$REMOTE" = "xa8" ]
-then
-       srv 'tcp!169.229.49.48!1025' $SRVNAME
-elif [ "x$REMOTE" = "xqemu" ]
-then
-       srv 'tcp!10.0.2.2!1025' $SRVNAME
-else
-       echo "Unknown remote: $REMOTE!"
-       exit
-fi
-
-mount -a -c /srv/$SRVNAME /mnt
-ls /mnt
diff --git a/kern/kfs/root/.ssh/.empty b/kern/kfs/root/.ssh/.empty
new file mode 100644 (file)
index 0000000..e69de29