mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-24 22:43:35 +00:00
add load/unload of BTstack launchd config to deb package
This commit is contained in:
parent
7370b785d0
commit
5a27dc563a
3
TODO.txt
3
TODO.txt
@ -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,
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user