#!/bin/sh
#
# Sample of my /etc/rc
#
echo Reading rc...
PATH=/bin:/etc:/usr/bin

# If we we shut down with "shutdown -f" don't check file systems.
if [ ! -f /etc/fastboot ]
then
	echo "Checking file systems..."
	fsck -av /dev/hda1
	# Possibly other file systems too..
fi
rm -f /etc/fastboot

# Initialize the usual things...
rm -f /etc/mtab~
# This is for the older mount & umount
rdev >/etc/mtab
swapon /dev/hda4

hostname drinkel

# Possibly mount some disks like /usr..

# Initialize modem

{
  echo "Initializing modem.." >&2
  stty sane 2400 raw -echo
  echo -n '
+++' > /dev/ttys3
  sleep 1
  echo -n '
ATE0Q1L0M0
'
} <> /dev/ttys3 <&1


# Done.
echo "rc complete"
