#!/bin/bash
# Called at boot time to configure node appropriately.
# THIS FILE CREATED AUTOMATICALLY - DO NOT MODIFY

# Mount everything
mount -a

# Start log size management utilities. Args are:
#          logfile       maxBytes  checkInterval (sec)
/etc/siam/manageLog /var/log/syslog 500000 60 &
/etc/siam/manageLog /var/log/messages 500000 60 &

# Set groups and permissions for RXTX Java serial port package
chgrp lock /var/lock
chmod 775 /var/lock

# Get time from Ricoh 
/root/ricohRTC -s

# Try to synchronize time with shore
/usr/sbin/ntpdate -b ocean.shore.mbari.org

# Disable ethernet, set hostname
ifdown eth0
hostname mooring

