mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 04:20:20 +00:00
add load/unload of BTstack launchd config to deb package
This commit is contained in:
parent
7370b785d0
commit
5a27dc563a
1
TODO.txt
1
TODO.txt
@ -5,6 +5,7 @@ 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
|
||||
|
||||
|
@ -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