#!/bin/sh
#
# /etc/rc.d/rc.local:  Local system initialization script.
#
# Put any local startup commands in here.  Also, if you have
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.

mkdir -vpm755 /devel

 modprobe usbserial vendor=0x9e88 product=0x9e8f
 modprobe ftdi_sio vendor=0x9e88 product=0x9e8f

# Distcc:
case "$( uname -m )" in
   i?86) export DISTCCARCH=i486 ;;
   # Unless $ARCH is already set, use uname -m for all other archs:
      *) export DISTCCARCH=$( uname -m ) ;;
esac

#DISTCC_SAVE_TEMPS=1 \
DISTCC_BASEDIR=/devel/build-servers/
LD_LIBRARY_PATH=$DISTCC_BASEDIR/$DISTCCARCH/arm/$DISTCCARCH-slackware-linux/arm-slackware-linux-gnueabi/lib/ \
DISTCCD_PATH=$DISTCC_BASEDIR/$DISTCCARCH/arm/bin \
   /usr/bin/distccd \
     --verbose \
     --log-file /tmp/distcc.log \
     -j 20 \
     --daemon \
     --allow 192.168.1.0/24

