#!/bin/sh

#Turn on BT and WIFI radios
/usr/bin/aircraft-manager-util WIFI on
/usr/bin/aircraft-manager-util BT on

# Load bluetooth-related module/service first so a bluetooth
# mouse can quickly reconnect on boot
/sbin/modprobe hci_usb
/etc/init.d/bluetooth start

/sbin/modprobe pcspkr
/sbin/modprobe pata_acpi
/sbin/modprobe uvcvideo
/sbin/modprobe cdc-acm
/sbin/modprobe mbm
/sbin/modprobe sms1xxx

# We delay iterating though dbus's event directory until now
EVENTDIR=/etc/dbus-1/event.d

if [ -d $EVENTDIR ]; then
	run-parts --arg=start $EVENTDIR
fi

# Start all remaining services we delayed from /etc/rc2.d
/etc/init.d/pulseaudio start
/etc/init.d/anacron start
/etc/init.d/apport start
/etc/init.d/cupsys start

exit 0



