#!/bin/sh
#
# setup obex
#
# runlevels: geexbox, debug, configure

# get options
test -f /etc/obex || exit 1
. /etc/obex
[ "$OBEX_ENABLE" = "true" ] || exit 1

if [ "$OBEXFS_ENABLE" = "true" ]; then
  modprobe fuse 
  [ "$OBEXFS_MOUNTATSTARTUP" = "true" ] && mount_mobile > /dev/null 2>&1 &
fi

[ "$OBEXSERVER_ENABLE" = "true" -a "$OBEXSERVER_LAUNCHATSTARTUP" = "true" ] && start_obex_server > /dev/null 2>&1 &

[ "$OBEXPUSH_ENABLE" = "true" ] && opd > /dev/null 2>&1 &

exit 0
