#!/bin/sh

# powerlast ...
if [ -f /etc/tos/scripts/powerlast ]; then
    /etc/tos/scripts/powerlast
fi
# powertimer ...              
if [ -f /etc/tos/scripts/powertimer ]; then
    /etc/tos/scripts/powertimer
fi
# encrypt /etc/email to /etc/email.ecrypt
if [ -f /etc/email ]; then
    /usr/sbin/email_helper --act='enc' --in='/etc/email' --out='/etc/email.encrypt'
    rm -f /etc/email
fi
# spindown ...                                                            
if [ -f /etc/tos/scripts/spindown ]; then  
    /etc/tos/scripts/spindown > /dev/null &
fi

# remotefolder ...                                                            
if [ -f /etc/tos/scripts/remotefolder ]; then
    /etc/tos/scripts/remotefolder mountall > /dev/null &
fi

# clean the update dir
rm -fr /etc/base/update/* > /dev/null &
