apply_patches.sh 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/bash
  2. # Apply patches
  3. for file in ./patches/*; do
  4. patch -d LibreELEC.tv/ -p1 < "${file#*/}"
  5. done
  6. # Change dist build options to my preference.
  7. sed -i \
  8. "s/GOLD_SUPPORT=\".*\"/GOLD_SUPPORT=\"no\"/g
  9. ; s/HARDENING_SUPPORT=\".*\"/HARDENING_SUPPORT=\"yes\"/g
  10. ; s/BLUETOOTH_SUPPORT=\".*\"/BLUETOOTH_SUPPORT=\"no\"/g
  11. ; s/AVAHI_DAEMON=\".*\"/AVAHI_DAEMON=\"no\"/g
  12. ; s/KODI_UPNP_SUPPORT=\".*\"/KODI_UPNP_SUPPORT=\"no\"/g
  13. ; s/KODI_OPTICAL_SUPPORT=\".*\"/KODI_OPTICAL_SUPPORT=\"no\"/g
  14. ; s/KODI_AIRPLAY_SUPPORT=\".*\"/KODI_AIRPLAY_SUPPORT=\"no\"/g
  15. ; s/KODI_AIRTUNES_SUPPORT=\".*\"/KODI_AIRTUNES_SUPPORT=\"no\"/g
  16. ; s/KODI_SAMBA_SUPPORT=\".*\"/KODI_SAMBA_SUPPORT=\"no\"/g
  17. ; s/WIRELESS_DAEMON=\".*\"/WIRELESS_DAEMON=\"\"/g
  18. ; s/SAMBA_SUPPORT=\".*\"/SAMBA_SUPPORT=\"no\"/g
  19. ; s/SAMBA_SERVER=\".*\"/SAMBA_SERVER=\"no\"/g
  20. ; s/SFTP_SERVER=\".*\"/SFTP_SERVER=\"no\"/g
  21. ; s/OPENVPN_SUPPORT=\".*\"/OPENVPN_SUPPORT=\"no\"/g
  22. ; s/WIREGUARD_SUPPORT=\".*\"/WIREGUARD_SUPPORT=\"no\"/g
  23. ; s/NTFS3G=\".*\"/NTFS3G=\"no\"/g
  24. ; s/INSTALLER_SUPPORT=\".*\"/INSTALLER_SUPPORT=\"no\"/g
  25. ; s/REMOTE_SUPPORT=\".*\"/REMOTE_SUPPORT=\"yes\"/g
  26. ; s/ADDITIONAL_DRIVERS=\".*\"/ADDITIONAL_DRIVERS=\"\"/g
  27. ; s/KODI_BLURAY_SUPPORT=\".*\"/KODI_BLURAY_SUPPORT=\"no\"/g
  28. ; s/BLURAY_BDPLUS_SUPPORT=\".*\"/BLURAY_BDPLUS_SUPPORT=\"no\"/g
  29. ; s/BLURAY_AACS_SUPPORT=\".*\"/BLURAY_AACS_SUPPORT=\"no\"/g
  30. ; s/DEFAULT_LINKER=\".*\"/DEFAULT_LINKER=\"bfd\"/g" \
  31. LibreELEC.tv/distributions/LibreELEC/options