diff --git a/package.sh b/package.sh index f62e349b0..98488c2df 100755 --- a/package.sh +++ b/package.sh @@ -26,7 +26,7 @@ mkdir -p $PACKAGE/Library/LaunchDaemons/ cp resources/ch.ringwald.BTstack.plist $PACKAGE/Library/LaunchDaemons/ echo "#!/bin/sh" > $PACKAGE/DEBIAN/postinst -echo "/bin/launchctl unload /Library/LaunchDaemons/ch.ringwald.BTstack.plist" >> $PACKAGE/DEBIAN/postinst +echo "/bin/launchctl unload /Library/LaunchDaemons/ch.ringwald.BTstack.plist 2&> /dev/null" >> $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