#!/bin/sh

. config/options $1

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

mkdir -p $INSTALL/sbin
  cp $PKG_BUILD/wpa_supplicant/wpa_supplicant $INSTALL/sbin
  cp $PKG_BUILD/wpa_supplicant/wpa_passphrase $INSTALL/sbin

mkdir -p $INSTALL/usr/share/dbus-1/system-services
  cp $PKG_BUILD/wpa_supplicant/dbus/fi.w1.wpa_supplicant1.service $INSTALL/usr/share/dbus-1/system-services
  cp $PKG_BUILD/wpa_supplicant/dbus/fi.epitest.hostap.WPASupplicant.service $INSTALL/usr/share/dbus-1/system-services