mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-23 18:39:52 +00:00
unload BTdaemon before loading again
This commit is contained in:
parent
cf221bbbb2
commit
c5e9c6e248
@ -26,7 +26,8 @@ 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
|
||||
echo "/bin/launchctl unload /Library/LaunchDaemons/ch.ringwald.BTstack.plist" >> $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
|
||||
|
Loading…
x
Reference in New Issue
Block a user