mirror of
https://github.com/riptidewave93/UNVR-NAS.git
synced 2025-02-13 02:51:53 +00:00
28 lines
539 B
Bash
28 lines
539 B
Bash
|
#!/bin/bash
|
||
|
set -e
|
||
|
|
||
|
# setup_mkimage is special, as it's copied to the dockerfile and ran
|
||
|
# same with vars.sh which we put in place
|
||
|
. /vars.sh
|
||
|
|
||
|
cd /usr/src
|
||
|
echo "Downloading genimage..."
|
||
|
wget ${genimage_src} -O /usr/src/${genimage_filename}
|
||
|
|
||
|
echo "Extracting genimage..."
|
||
|
tar -xJf /usr/src/${genimage_filename}
|
||
|
|
||
|
echo "Building genimage..."
|
||
|
cd ./${genimage_repopath}
|
||
|
./configure
|
||
|
make
|
||
|
|
||
|
echo "Installing genimage..."
|
||
|
make install
|
||
|
|
||
|
echo "Cleaning up..."
|
||
|
rm -rf /vars.sh # We wanna use it n burn it
|
||
|
rm -rf /usr/src/${genimage_repopath}*
|
||
|
|
||
|
exit 0
|