Fixed static_get bundle
This commit is contained in:
parent
5e3565a81b
commit
d64c753bc2
@ -2,10 +2,7 @@
|
|||||||
|
|
||||||
SRC_DIR=$(pwd)
|
SRC_DIR=$(pwd)
|
||||||
|
|
||||||
# Find the main source directory
|
. ../../common.sh
|
||||||
cd ../../..
|
|
||||||
MAIN_SRC_DIR=$(pwd)
|
|
||||||
cd $SRC_DIR
|
|
||||||
|
|
||||||
# Grab everything after the '=' character.
|
# Grab everything after the '=' character.
|
||||||
DOWNLOAD_URL=$(grep -i STATIC_GET_SOURCE_URL $MAIN_SRC_DIR/.config | cut -f2 -d'=')
|
DOWNLOAD_URL=$(grep -i STATIC_GET_SOURCE_URL $MAIN_SRC_DIR/.config | cut -f2 -d'=')
|
||||||
@ -30,11 +27,11 @@ fi
|
|||||||
|
|
||||||
# Delete folder with previously prepared static-get.
|
# Delete folder with previously prepared static-get.
|
||||||
echo "Removing static-get work area. This may take a while..."
|
echo "Removing static-get work area. This may take a while..."
|
||||||
rm -rf ../../work/overlay/staget
|
rm -rf $WORK_DIR/overlay/staget
|
||||||
mkdir ../../work/overlay/staget
|
mkdir $WORK_DIR/overlay/staget
|
||||||
|
|
||||||
# Copy static-get to folder 'work/overlay/staget'.
|
# Copy static-get to folder 'work/overlay/staget'.
|
||||||
cp static-get.sh ../../work/overlay/staget
|
cp static-get.sh $WORK_DIR/overlay/staget
|
||||||
|
|
||||||
cd $SRC_DIR
|
cd $SRC_DIR
|
||||||
|
|
||||||
|
@ -2,31 +2,28 @@
|
|||||||
|
|
||||||
SRC_DIR=$(pwd)
|
SRC_DIR=$(pwd)
|
||||||
|
|
||||||
# Find the main source directory
|
. ../../common.sh
|
||||||
cd ../../..
|
|
||||||
MAIN_SRC_DIR=$(pwd)
|
|
||||||
cd $SRC_DIR
|
|
||||||
|
|
||||||
echo "Removing old static-get artifacts. This may take a while..."
|
echo "Removing old static-get artifacts. This may take a while..."
|
||||||
rm -rf $MAIN_SRC_DIR/work/overlay/staget/staget_installed
|
rm -rf $WORK_DIR/overlay/staget/staget_installed
|
||||||
mkdir -p $MAIN_SRC_DIR/work/overlay/staget/staget_installed/opt/staget
|
mkdir -p $WORK_DIR/overlay/staget/staget_installed/opt/staget
|
||||||
mkdir -p $MAIN_SRC_DIR/work/overlay/staget/staget_installed/bin
|
mkdir -p $WORK_DIR/overlay/staget/staget_installed/bin
|
||||||
|
|
||||||
cd $MAIN_SRC_DIR/work/overlay/staget
|
cd $WORK_DIR/overlay/staget
|
||||||
|
|
||||||
cp $MAIN_SRC_DIR/source/overlay/static-get.sh .
|
cp $MAIN_SRC_DIR/source/overlay/static-get.sh .
|
||||||
|
|
||||||
chmod +rx static-get.sh
|
chmod +rx static-get.sh
|
||||||
|
|
||||||
cp static-get.sh $MAIN_SRC_DIR/work/overlay/staget/staget_installed/opt/staget
|
cp static-get.sh $WORK_DIR/overlay/staget/staget_installed/opt/staget
|
||||||
|
|
||||||
cd $MAIN_SRC_DIR/work/overlay/staget/staget_installed
|
cd $WORK_DIR/overlay/staget/staget_installed
|
||||||
|
|
||||||
ln -s ../opt/staget/static-get.sh bin/static-get
|
ln -s ../opt/staget/static-get.sh bin/static-get
|
||||||
ln -s ../opt/staget/static-get.sh bin/mll-get
|
ln -s ../opt/staget/static-get.sh bin/mll-get
|
||||||
|
|
||||||
cp -r $MAIN_SRC_DIR/work/overlay/staget/staget_installed/* \
|
cp -r $WORK_DIR/overlay/staget/staget_installed/* \
|
||||||
$MAIN_SRC_DIR/work/src/minimal_overlay/rootfs
|
$WORK_DIR/src/minimal_overlay/rootfs
|
||||||
|
|
||||||
echo "static-get has been installed."
|
echo "static-get has been installed."
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user