diff --git a/TODO.txt b/TODO.txt index 4b83bfd2d..eaa8ed8af 100644 --- a/TODO.txt +++ b/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, diff --git a/package.sh b/package.sh index cfb4ef3e4..90328c576 100755 --- a/package.sh +++ b/package.sh @@ -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