[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
A faster and snappier GlueSTiK! ;-))
I've just achieved a MUCH faster operation, using GlueSTiK 0.02b4
since starting it from rc.net instead of mint.cnf; unfortunatly,
the newer 0.03 betas cannot be used that way, since they feature
an XDD executable.
I shuffled the order of ALL my rc files, which noticably improves
overall MiNT performance speed and reduces bus errors occurances.
MiNTOS now loads them in the following order:
rc.boot
rc -> rc.local
-> standard services
-> rc.net
I've appended my rc files below, for those who are curious about
what I did where (although I'm certain others have found better
ways to accomplish this --I'm only a newbie, ain't I?-- ;-).
Martin-Eric
---*---
#
# /etc/rc.boot -- Executed by init(8) at boot time before
# /etc/rc. Network setup goes in /etc/rc.net,
# local customisation goes in /etc/rc.local
#
umask 022
HOME=/; export HOME
PATH=/bin:/usr/etc:/usr/bin:/usr/lib; export PATH
echo "(rc.boot)"
#
# Check filesystems on normal boot or after systemcrash.
#
if [ -f /etc/fastboot ]; then
echo "Fast boot. Skipping filesystem checks."
rm -f /etc/fastboot
else
mfsdrives=`grep -v '^#' /etc/fstab | \
while read drv mntp type owner group perm; do
if [ "X$type" = Xminix ]; then
echo "$drv"
fi
done`
for drv in $mfsdrives; do
echo; echo "Checking filesystem on drive $drv."
fsck -p $drv:
if [ $? -ne 0 ]; then
echo
echo "Warning: fsck FAILED"
echo " Starting single user shell. Fix the"
echo " filesystem on drive $drv and REBOOT!"
echo
sh -si < /dev/console > /dev/console 2>&1
fi
done
fi
#
# Mount filesystems and set owner/permissions from /etc/fstab.
#
cat /dev/null > /etc/mtab
grep -v '^#' /etc/fstab | \
while read drv mntp type owner group perm; do
if [ -d "/$drv" ]; then
fs="/$drv"
elif [ -d "/.$drv" ]; then
fs="/.$drv"
else
echo "Warning: drive $drv not found"
drv="-"; fs="-"
fi
if [ "X$fs" != "X-" -a "X$owner" != "X-" ]; then
chown "$owner" "$fs"
fi
if [ "X$fs" != "X-" -a "X$group" != "X-" ]; then
chgrp "$group" "$fs"
fi
if [ "X$fs" != "X-" -a "X$perm" != "X-" ]; then
chmod "$perm" "$fs"
fi
if [ "X$drv" != "X-" -a "X$mntp" != "X-" -a "X$type" != "X-" ]; then
echo "$drv $mntp" >> /etc/mtab
if [ "X$mntp" != "X/" ]; then
mount -t "$type" "$drv:" "$mntp"
fi
fi
done
exit 0
---*---
#
# /etc/rc -- Executed by init(8).
# Network setup goes in /etc/rc.net,
# local customisation goes in /etc/rc.local
#
umask 022
HOME=/; export HOME
PATH=/bin:/usr/etc:/usr/bin:/usr/lib; export PATH
echo "(rc)"
# Start up the update daemon. This may be useful if there are
# any file systems which may need sync()ing in the future.
# You never know, someone might write one!
if [ -f /usr/lib/update ]; then
update > /dev/null 2>&1 &
fi
if [ -f /etc/single ]; then
echo "Multiuser startup in progress..."
rm -f /etc/single
else
echo "Automatic reboot in progress..."
fi
date
# Initial cleanup.
echo "Preserving editor files."
/usr/ucb/elvprsv /tmp/elv*
echo "Removing stale lockfiles."
rm -f /var/spool/locks/LCK.*
echo "Clearing /tmp and /etc/utmp."
rm -rf /tmp/* > /dev/null 2>&1
cat /dev/null > /etc/utmp
rm -f /etc/nologin*
# Start local daemons
if [ -f /etc/rc.local ]; then
sh /etc/rc.local
fi
# Start the standard daemons.
echo -n "Standard services (rc):"
if [ -f /usr/etc/syslogd ]; then
rm -f /dev/log
(cd /var/adm; syslogd > /dev/null 2>&1 &)
echo -n " system-logger"
fi
if [ -f /usr/etc/crond ]; then
(cd /var/spool/cron; crond > /dev/null 2>&1 &)
echo -n " crond"
fi
# lpd is a standard service, but needs sockets.
#if [ -f /usr/lib/lpd -a -e /dev/socket ]; then
# (cd /var/spool/lpd ; lpd > /dev/null 2>&1 &)
# echo -n " lpd"
#fi
echo "."
# Start up the MiNT Network - only if really enabled.
if [ -f /etc/rc.net -a -e /dev/socket ]; then
sh /etc/rc.net
fi
exit 0
---*---
#
# /etc/rc.local -- run from /etc/rc.
#
# This file does everything which is local to the current machine.
#
PATH=/usr/local/bin:$PATH
#
# Generate a message of the day with the correct version information.
#
if [ -f /usr/etc/makemotd ] ; then
makemotd
fi
echo -n "Additional services (rc.local):"
#
# Ueblicherweise sollte vcons1d funktionieren.
#
# Alternativ kann auch vcon, vconx oder vconsd gestartet werden.
#
VCON=vcons1d # force 1 bitplane
vt=con
if [ -f /usr/etc/${VCON} ]; then
echo -n " virtual-consoles"
TERM=stv52 ; export TERM
if nice -20 ${VCON}; then
mv /dev/console /dev/con00
mv /dev/ttyv0 /dev/console
vt=vt
fi
fi
ln -f /etc/ttytab.$vt /etc/ttytab
# Set the TT's console into auto-wrap mode. (Why
# does the TT start up without auto-text-wrap?)
#
echo -n "v"
echo "."
---*---
# /etc/rc.net -- run from /etc/rc.
#
# Startup script for MintNet, (w) 1994, Kay Roemer.
#
#
# Setup the loopback interface and add a route to loopback net
#
ifconfig lo0 addr 127.0.0.1 up
#route add 127.0.0.0 lo0
#
# Setup network interfaces and routes
#
#
# Setup a SLIP connection to a directly (via nullmodem) connected machine
#
#stty 31250 < /dev/ttye
#/usr/etc/slattach -r 192.168.0.11 -l 192.168.0.10 -p slip -t /dev/ttye
#
# Start network daemons
#
echo -n "Network services (rc.net):"
# portmapper must run before any of the rpc services is used!
# Don't try to run rpc.rstatd or rpc.mountd if portmap is not running!
# If you do not need any of the rpc services, you don't need portmap!
if [ -f /usr/etc/portmap ]; then
portmap > /dev/null 2>&1
echo -n " portmap"
fi
if [ -f /usr/etc/inetd ]; then
inetd > /dev/null 2>&1
echo -n " inetd"
fi
# Start them only if the xfs is installed and if we really want to act
# as an NFS server. Otherwise use `mount_nfs host:/remote/dir /nfs/localdir'
# if you can make sure the networking is running at this point.
if [ -f /usr/multitos/nfs.xfs -a -f /etc/xtab ]; then
if [ -f /usr/etc/rpc.mountd ]; then
rm -f /etc/mtab
rpc.mountd > /dev/null 2>&1
echo -n " mountd"
fi
if [ -f /usr/etc/nfsd ] ; then
nfsd > /dev/null 2>&1
echo -n " nfsd"
fi
fi
#
# you may auto-start pppd here.
#
if [ -f /usr/etc/pppd ]; then
pppd
echo -n " pppd"
fi
echo "."
#
# GlueSTiK (STiK emulator)
#
/c/auto/rsvx.prg
/c/multitos/gluestik/gsdaemon.prg
/c/multitos/gluestik/gsdriver.exe
---*---
-----------------------------------------------------------------
From: Martin-Eric Racine FUNKYWARE http://www.megacom.net/~q-funk
Atari TT030 12/1600 NVDI 4.11, MiNT 1.14.6, N.AES 1.1.0, GlueSTiK
-----------------------------------------------------------------
Unsollicited material will be proof-read for $100 USD per word,
payable within 10 days. Submission of your advertisement to my
address constitutes your formal acceptance of these terms.
-----------------------------------------------------------------
<TITLE><BLINK><H1>No HTML Messages Please!</H1></BLINK></TITLE>