#! /sbin/sh
#Tag 0x00000f00

# Initial System Setup
# "$Revision: 1.30 $"

case "$1" in
'start')

    #  If there are trademark files, print them.
    if test -d /etc/tm; then
	    cat /etc/tm/* 2> /dev/null
    fi

    # set the system name
    hostname `cat /etc/sys_id`

    #  Start the syslog-demon
    killall syslogd
    /usr/etc/syslogd `cat /etc/config/syslogd.options 2> /dev/null`

    #  Setup Autologin
    if test -r /etc/autologin; then
	    > /etc/autologin.on
    fi

    for ENTRY in /etc/autologin.ttyd*
    do
	if test -r $ENTRY
	then
		> $ENTRY.on
	fi
    done
    ;;	

'stop')
    # Stop the syslog-demon
    killall 15 syslogd
    exit 0
    ;;

*)
    echo "usage: $0 {start|stop}"
    ;;
esac
