Developing lightweight computation at the DSG edge

Commit 3d5e5cd0 authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

Replace LEDE references with OpenWrt's (II)


Signed-off-by: default avatarRoger Pueyo Centelles <roger.pueyo@guifi.net>
parent b73cd88e
......@@ -362,7 +362,7 @@ download_sdk() {
local output="$release/$target"
[ ! -d "$output" ] && mkdir -p "$output"
local sdk_file="$(wget -q -O- $url | grep lede-sdk | grep -Eoi '<a [^>]+>' | grep -Eo 'href="[^\"]+"' | cut -d '=' -f 2 | sed 's/\"//g')"
local sdk_file="$(wget -q -O- $url | grep openwrt-sdk | grep -Eoi '<a [^>]+>' | grep -Eo 'href="[^\"]+"' | cut -d '=' -f 2 | sed 's/\"//g')"
echo "-> Downloading $url/$sdk_file"
wget -c "$url/$sdk_file" -O "$tmp_dir/$sdk_file" || {
echo "-> Error, cannot download SDK $url/$sdk_file"
......@@ -380,7 +380,7 @@ unpack_sdk() {
echo "-> Unpacking SDK to $output"
tar xf $file -C $output/ && {
[ -d $output/sdk ] && rm -rf $output/sdk
mv $output/lede-sdk* $output/sdk
mv $output/openwrt-sdk* $output/sdk
rm -rf $output/sdk/dl
local dl=$downloads_dir
echo $dl | grep -q / || dl="$PWD/$dl"
......@@ -400,7 +400,7 @@ download_ib() {
local url="$base_url/$target"
local output="$release/$target"
[ ! -d "$output" ] && mkdir -p "$output"
local ib_file="$(wget -q -O- $url | grep lede-imagebuilder | grep -Eoi '<a [^>]+>' | grep -Eo 'href="[^\"]+"' | cut -d '=' -f 2 | sed 's/\"//g')"
local ib_file="$(wget -q -O- $url | grep openwrt-imagebuilder | grep -Eoi '<a [^>]+>' | grep -Eo 'href="[^\"]+"' | cut -d '=' -f 2 | sed 's/\"//g')"
echo "-> Downloading $url/$ib_file"
wget -c "$url/$ib_file" -O "$tmp_dir/$ib_file" || {
echo "-> Error, cannot download ImageBuilder $url/$ib_file"
......@@ -418,7 +418,7 @@ unpack_ib() {
echo "-> Unpacking ImageBuilder to $output"
tar xf $file -C $output/ && {
[ -d $output/ib ] && rm -rf $output/ib
mv $output/lede-imagebuilder* $output/ib
mv $output/openwrt-imagebuilder* $output/ib
cp -f $output/ib/repositories.conf $output/ib/repositories.original.conf
sed -i 's%^src/gz .*_routing .*$%# &%' $output/ib/repositories.original.conf
} || echo "-> Error installing ImageBuilder"
......@@ -480,8 +480,8 @@ make_qmp_release() {
force_local=1
build_all_sdk
DISTCL="lede"
DISTLEGACY="lede"
DISTCL="openwrt"
DISTLEGACY="openwrt"
COMBINEDEXT4IMG="combined-ext4.img.gz"
COMBINEDEXT4VDI="combined-ext4.vdi"
COMBINEDEXT4VMDK="combined-ext4.vmdk"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment