#!/bin/sh

. config/options $1

add_user system x 430 430 "service" "/var/run/connman" "/bin/sh"
add_group system 430

mkdir -p $INSTALL/etc
  cp $PKG_DIR/config/services $INSTALL/etc

mkdir -p $INSTALL/etc/dbus-1/system.d
  cp $PKG_BUILD/src/connman.conf $INSTALL/etc/dbus-1/system.d

#mkdir -p $INSTALL/usr/lib/connman/plugins
#  cp $PKG_BUILD/plugins/.libs/*.so $INSTALL/usr/lib/connman/plugins

mkdir -p $INSTALL/usr/sbin
  cp -P $PKG_BUILD/src/connmand $INSTALL/usr/sbin

mkdir -p $INSTALL/usr/config
  cp $PKG_DIR/config/network.conf $INSTALL/usr/config
  cp $PKG_DIR/config/hosts.conf $INSTALL/usr/config

if [ "$DEVTOOLS" = yes ]; then
  mkdir -p $INSTALL/usr/bin
    cp $PKG_DIR/scripts/cmcc $INSTALL/usr/bin
fi

