add load/unload of BTstack launchd config to deb package

This commit is contained in:
matthias.ringwald 2009-10-29 21:16:33 +00:00
parent 7370b785d0
commit 5a27dc563a
2 changed files with 9 additions and 1 deletions

View File

@ -5,7 +5,8 @@ NEXT:
- check why BT does not shut off after a while of inactivity on iPhone
- sign BTstack repository
- figure out how to add BTstack logo to Cydia repository list
- WiiMote Demo: upside down is not shown correctly
== Release Version 0.1
- figure out how to receive iPhone System Power IONotifications (in BTdaemon) to detect,

View File

@ -25,6 +25,13 @@ cp resources/*.png $PACKAGE/System/Library/CoreServices/
mkdir -p $PACKAGE/Library/LaunchDaemons/
cp resources/ch.ringwald.BTstack.plist $PACKAGE/Library/LaunchDaemons/
echo "#!/bin/sh" > $PACKAGE/DEBIAN/postinst
echo "/bin/launchctl load /Library/LaunchDaemons/ch.ringwald.BTstack.plist" >> $PACKAGE/DEBIAN/postinst
chmod +x $PACKAGE/DEBIAN/postinst
echo "#!/bin/sh" > $PACKAGE/DEBIAN/prerm
echo "/bin/launchctl unload /Library/LaunchDaemons/ch.ringwald.BTstack.plist" >> $PACKAGE/DEBIAN/prerm
chmod +x $PACKAGE/DEBIAN/prerm
# set ownership to root:root
sudo chown -R 0:0 $PACKAGE