Skip to content

Instantly share code, notes, and snippets.

@thesabbir
Created October 24, 2016 19:15
Show Gist options
  • Save thesabbir/15baedaf070bc7a421dbc21dc3bc96c2 to your computer and use it in GitHub Desktop.
Save thesabbir/15baedaf070bc7a421dbc21dc3bc96c2 to your computer and use it in GitHub Desktop.
Install xcode and brew and run this script to setup openwrt build tool on OSX 10.10+
#!/bin/bash
brew tap homebrew/dupes
brew install coreutils findutils gawk gnu-getopt gnu-tar grep wget quilt xz
brew ln gnu-getopt --force
export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
hdiutil create -size 20g -type SPARSE -fs "Case-sensitive HFS+" -volname OpenWrt OpenWrt.sparseimage
hdiutil attach OpenWrt.sparseimage
cd /Volumes/OpenWrt
git clone https://github.com/openwrt/openwrt.git buildroot
cd buildroot
echo "Ready to roll!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment