aboutsummaryrefslogtreecommitdiff
path: root/release
diff options
context:
space:
mode:
authorRoger Hardiman <roger@FreeBSD.org>1999-08-28 06:22:07 +0000
committerRoger Hardiman <roger@FreeBSD.org>1999-08-28 06:22:07 +0000
commit6340ac2f2a166693ee42a26e6574a2ffc4aae0ad (patch)
tree531c2c46556c90669b1f4e4f316c00c5c789294e /release
parentb519d997a1530c51429bcee9a1f882d780230b91 (diff)
downloadsrc-6340ac2f2a166693ee42a26e6574a2ffc4aae0ad.tar.gz
src-6340ac2f2a166693ee42a26e6574a2ffc4aae0ad.zip
Add file which was missing from previous commits
Notes
Notes: svn path=/head/; revision=50491
Diffstat (limited to 'release')
-rw-r--r--release/picobsd/net/floppy.tree/etc/rc60
1 files changed, 60 insertions, 0 deletions
diff --git a/release/picobsd/net/floppy.tree/etc/rc b/release/picobsd/net/floppy.tree/etc/rc
new file mode 100644
index 000000000000..3b38df65813a
--- /dev/null
+++ b/release/picobsd/net/floppy.tree/etc/rc
@@ -0,0 +1,60 @@
+#!/bin/sh
+# $FreeBSD$
+############################################
+### Special setup for one floppy PICOBSD ###
+### THIS IS NOT THE NORMAL /etc/rc !!!!! ###
+############################################
+mount -a -t nonfs
+if [ -f /etc/rc.conf ]; then
+ . /etc/rc.conf
+fi
+rm -f /var/run/*
+if [ "x$swapfile" != "xNO" -a -w "$swapfile" -a -b /dev/vn0b ]; then
+ echo "Adding $swapfile as additional swap."
+ vnconfig /dev/vn0b $swapfile && swapon /dev/vn0b
+fi
+# configure serial devices
+if [ -f /etc/rc.serial ]; then
+ . /etc/rc.serial
+fi
+# start up the initial network configuration.
+if [ -f /etc/rc.network ]; then
+ . /etc/rc.network
+ network_pass1
+fi
+mount -a -t nfs
+chmod 666 /dev/tty[pqrsPQRS]*
+# clean up left-over files
+(cd /var/run && { cp /dev/null utmp; chmod 644 utmp; })
+if [ -n "$network_pass1_done" ]; then
+ network_pass2
+fi
+if [ -n "$network_pass2_done" ]; then
+ network_pass3
+fi
+if [ "X${inetd_enable}" = X"YES" ]; then
+ echo "Starting inetd."; inetd ${inetd_flags}
+fi
+
+dev_mkdb
+
+echo ''
+if [ "x$swapfile" = "xNO" ]; then
+ echo "WARNING: no swap partition!"
+ echo "Don't run too many programs at the same time..."
+fi
+echo ''
+echo ''
+echo '+----------- PicoBSD @VER@ (NET) ---------------+'
+echo '| |'
+echo '| Log in as "root" (password "setup"). |'
+echo '| |'
+echo '| This version of PicoBSD is fully under |'
+echo '| BSD license. For more details see |'
+echo '| http://www.freebsd.org/~picobsd, or contact |'
+echo '| the author. |'
+echo '| |'
+echo '| abial@freebsd.org |'
+echo '| |'
+echo '+----------------------------------------------+'
+exit 0