#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# network config
if [ -e "/opt/bin/network.sh" ]; then
  /opt/bin/network.sh
fi

setserial /dev/ttyS4 uart 16550a port 0x2e0 irq 10 ^fourport # msr
setserial /dev/ttyS5 uart 16550a port 0x3e0 irq 11 ^fourport # touch

inputattach --daemon --fujitsu /dev/ttyS5

exit 0

