_common.sh 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/bash
  2. #=================================================
  3. # COMMON VARIABLES
  4. #=================================================
  5. pkg_dependencies="sipcalc hostapd iptables iw dnsmasq"
  6. nonfree_firmware_packages="firmware-atheros firmware-realtek firmware-ralink firmware-libertas atmel-firmware firmware-zd1211"
  7. free_firmware_packages="firmware-ath9k-htc"
  8. #=================================================
  9. # PERSONAL HELPERS
  10. #=================================================
  11. function check_armbian_nonfree_conflict()
  12. {
  13. # If we're on armbian, force $firmware_nonfree
  14. # because armbian-firmware conflicts with firmware-misc-nonfree package
  15. if dpkg --list | grep -q armbian-firmware; then
  16. echo "You are running Armbian and firmware-misc-nonfree are known to conflict with armbian-firwmare. " >&2
  17. echo "The package firmware-misc-nonfree is a dependency of firmware-ralink, so firmware-ralink will NOT be installed" >&2
  18. echo "You can manually install firmware-ralink with 'sudo apt -o Dpkg::Options::=\"--force-overwrite\" firmware-ralink'" >&2
  19. nonfree_firmware_packages=$(echo $nonfree_firmware_packages | sed 's/ firmware-ralink//')
  20. fi
  21. }
  22. #=================================================
  23. # EXPERIMENTAL HELPERS
  24. #=================================================
  25. #=================================================
  26. # FUTURE OFFICIAL HELPERS
  27. #=================================================