-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-lede-dev-env.sh
executable file
·56 lines (41 loc) · 1.38 KB
/
install-lede-dev-env.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
# Script for installing and setting up an LEDE Development Environment
# that is compatible with custom piratebox feeds
# @author: Christian Wang
clear
echo "WELCOME TO LEDE-DEV-ENV SETUP"
while true; do
read -n1 -r -p "$(echo -e 'Install Package Dependencies? Y/N\n\b')" yn
case $yn in
[Yy]* ) echo "Installing Packages...";
sudo apt-get install subversion g++ zlib1g-dev build-essential git python rsync man-db
sudo apt-get install libncurses5-dev gawk gettext unzip file libssl-dev wget
break;;
[Nn]* ) break;;
*) echo "Please answer yes or no"
esac
done
echo "Cloning LEDE-SOURCE..."
git clone https://git.lede-project.org/source.git lede
cd lede
echo "Updating feeds..."
./scripts/feeds update -a
echo "Installing feeds..."
./scripts/feeds install -a
echo "Cloning Piratebox Feeds..."
git clone https://github.com/PirateBox-Dev/openwrt-piratebox-feed.git piratebox-feed
cd piratebox-feed
git checkout LEDE_adjustments
cd ..
echo "Making changes to feeds.conf..."
cp feeds.conf.default feeds.conf
echo "src-link piratebox piratebox-feed" >> feeds.conf
echo "Updating piratebox feed..."
./scripts/feeds update piratebox
echo "Installing piratebox feed..."
./scripts/feeds install -p piratebox
echo "Moving Files..."
cd ..
mv Makefile lede
mv ar71xx-generic.mk lede/include
echo "All Done. To start building images run the script ./image-generator.sh"