prereq.sh 551 B

1234567891011121314
  1. #!/bin/bash
  2. echo "Prereq for openwrt build:"
  3. sudo apt-get update
  4. sudo apt-get install subversion git curl python3 gettext mercurial build-essential -y
  5. sudo apt-get install gettext ncurses-bin libncurses5-dev git-core zlib1g-dev libssl-dev python2.7 unzip gawk zlib1g-dev -y
  6. version=`lsb_release -d | grep Description |awk {'print$3'}`
  7. echo $version
  8. if [ "$version" = "20.04.5" ]
  9. then
  10. sudo apt-get install python3-distutils -y
  11. fi
  12. #wget -c https://gitlab.labs.nic.cz/turris/openwrt/uploads/0673001b14ab1d1769604ff0ce7d8781/git-version-check-fix.patch