|
|
@ -1,15 +1,18 @@ |
|
|
|
#!/bin/bash |
|
|
|
#!/bin/bash |
|
|
|
|
|
|
|
|
|
|
|
version="19.07.7" |
|
|
|
version="19.07.7" |
|
|
|
|
|
|
|
|
|
|
|
fprintUrl="https://openwrt.org/docs/guide-user/security/signatures" |
|
|
|
fprintUrl="https://openwrt.org/docs/guide-user/security/signatures" |
|
|
|
dlUrl="https://downloads.openwrt.org/releases/$version/targets/ramips/mt7620/" |
|
|
|
dlUrl="https://downloads.openwrt.org/releases/$version/targets/ramips/mt7620/" |
|
|
|
folderName="openwrt-imagebuilder-$version-ramips-mt7620.Linux-x86_64" |
|
|
|
folderName="openwrt-imagebuilder-$version-ramips-mt7620.Linux-x86_64" |
|
|
|
sumsFile="sha256sums" |
|
|
|
|
|
|
|
ascFile="$sumsFile.asc" |
|
|
|
mkdir -p tmp/ build/ |
|
|
|
|
|
|
|
cd tmp/ |
|
|
|
|
|
|
|
|
|
|
|
sudo pacman -q -S --needed base-devel ncurses zlib gawk git gettext openssl libxslt wget unzip python gnupg |
|
|
|
sudo pacman -q -S --needed base-devel ncurses zlib gawk git gettext openssl libxslt wget unzip python gnupg |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sumsFile="sha256sums" |
|
|
|
|
|
|
|
ascFile="$sumsFile.asc" |
|
|
|
|
|
|
|
|
|
|
|
rm $sumsFile* |
|
|
|
rm $sumsFile* |
|
|
|
wget -q "$dlUrl/$sumsFile" |
|
|
|
wget -q "$dlUrl/$sumsFile" |
|
|
|
wget -q "$dlUrl/$ascFile" |
|
|
|
wget -q "$dlUrl/$ascFile" |
|
|
@ -45,11 +48,11 @@ else |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
cd "$folderName" |
|
|
|
cd "$folderName" |
|
|
|
ln -sf ../files . |
|
|
|
ln -sf ../../files . |
|
|
|
make image PROFILE=ArcherMR200 PACKAGES="curl" FILES=files/ |
|
|
|
make image PROFILE=ArcherMR200 PACKAGES="curl" FILES=files/ |
|
|
|
cd .. |
|
|
|
|
|
|
|
ln -sf "$folderName/bin/targets/ramips/mt7620/" . |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
imageName="openwrt-$version-ramips-mt7620-ArcherMR200-squashfs-sysupgrade.bin" |
|
|
|
|
|
|
|
cp "bin/targets/ramips/mt7620/$imageName" ../../build/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cd ../../ |
|
|
|
|
|
|
|
|
|
|
|