PCMCIA card initialization is no more supportet by bluez, starting bluetooth with udev

This commit is contained in:
Stephan Raue 2009-07-28 21:24:44 +02:00
parent ebf3fead19
commit 94cfddcd18
2 changed files with 7 additions and 38 deletions

View File

@ -5,18 +5,19 @@
$SCRIPTS/install dbus $SCRIPTS/install dbus
$SCRIPTS/install glib $SCRIPTS/install glib
$SCRIPTS/install gettext-dummy $SCRIPTS/install gettext-dummy
$SCRIPTS/install setserial $SCRIPTS/install alsa-lib
PKG_DIR=`find $PACKAGES -type d -name $1` PKG_DIR=`find $PACKAGES -type d -name $1`
mkdir -p $INSTALL/usr/bin mkdir -p $INSTALL/usr/sbin
cp $PKG_BUILD/src/.libs/bluetoothd $INSTALL/usr/bin cp $PKG_BUILD/src/.libs/bluetoothd $INSTALL/usr/sbin
cp $PKG_BUILD/tools/.libs/hciattach $INSTALL/usr/bin
if [ $DEVTOOLS = yes ]; then if [ $DEVTOOLS = yes ]; then
mkdir -p $INSTALL/usr/bin
cp $PKG_BUILD/tools/.libs/avinfo $INSTALL/usr/bin cp $PKG_BUILD/tools/.libs/avinfo $INSTALL/usr/bin
cp $PKG_BUILD/tools/.libs/bccmd $INSTALL/usr/bin cp $PKG_BUILD/tools/.libs/bccmd $INSTALL/usr/bin
cp $PKG_BUILD/tools/.libs/ciptool $INSTALL/usr/bin cp $PKG_BUILD/tools/.libs/ciptool $INSTALL/usr/bin
cp $PKG_BUILD/tools/.libs/hciattach $INSTALL/usr/bin
cp $PKG_BUILD/tools/.libs/hciconfig $INSTALL/usr/bin cp $PKG_BUILD/tools/.libs/hciconfig $INSTALL/usr/bin
cp $PKG_BUILD/tools/hcisecfilter $INSTALL/usr/bin cp $PKG_BUILD/tools/hcisecfilter $INSTALL/usr/bin
cp $PKG_BUILD/tools/.libs/hcitool $INSTALL/usr/bin cp $PKG_BUILD/tools/.libs/hcitool $INSTALL/usr/bin
@ -26,8 +27,6 @@ if [ $DEVTOOLS = yes ]; then
cp $PKG_BUILD/test/.libs/hciemu $INSTALL/usr/bin cp $PKG_BUILD/test/.libs/hciemu $INSTALL/usr/bin
fi fi
cp $PKG_DIR/scripts/* $INSTALL/usr/bin
mkdir -p $INSTALL/usr/lib mkdir -p $INSTALL/usr/lib
cp $PKG_BUILD/lib/.libs/libbluetooth.so* $INSTALL/usr/lib cp $PKG_BUILD/lib/.libs/libbluetooth.so* $INSTALL/usr/lib
@ -41,5 +40,5 @@ mkdir -p $INSTALL/etc/dbus-1/system.d
cp $PKG_BUILD/src/bluetooth.conf $INSTALL/etc/dbus-1/system.d cp $PKG_BUILD/src/bluetooth.conf $INSTALL/etc/dbus-1/system.d
mkdir -p $INSTALL/etc/udev/rules.d mkdir -p $INSTALL/etc/udev/rules.d
cp $PKG_BUILD/scripts/bluetooth.rules \ cp $PKG_BUILD/scripts/97_bluetooth.rules \
$INSTALL/etc/udev/rules.d/35_bluetooth.rules $INSTALL/etc/udev/rules.d

View File

@ -1,30 +0,0 @@
#!/bin/sh
#
# bluetooth_serial
#
# Bluetooth serial PCMCIA card initialization
#
start_serial()
{
[ -x /usr/bin/setserial -a -x /usr/bin/hciattach ] || return 1
[ -n "$BAUDBASE" ] && /usr/bin/setserial $DEVNAME baud_base $BAUDBASE
/usr/bin/hciattach $DEVNAME $HCIOPTS 2>&1
}
stop_serial()
{
[ -x /usr/bin/fuser ] || return 1
/usr/bin/fuser -k -HUP $DEVNAME > /dev/null 2>&1
}
case "$ACTION" in
add)
start_serial
;;
remove)
stop_serial
;;
*)
;;
esac