Use jessie script from repo

This commit is contained in:
Bob Mottram 2016-11-05 18:22:45 +00:00
parent b4ce259ebe
commit f2db64be89
1 changed files with 12 additions and 14 deletions

View File

@ -35,12 +35,19 @@ PROJECT_NAME='freedombone'
export TEXTDOMAIN=${PROJECT_NAME}-image export TEXTDOMAIN=${PROJECT_NAME}-image
export TEXTDOMAINDIR="/usr/share/locale" export TEXTDOMAINDIR="/usr/share/locale"
PROJECT_INSTALL_DIR=/usr/local/bin
if [ -f /usr/bin/${PROJECT_NAME} ]; then
PROJECT_INSTALL_DIR=/usr/bin
fi
source $PROJECT_INSTALL_DIR/${PROJECT_NAME}-vars
#get the project repo #get the project repo
PROJECT_REPO="https://github.com/bashrc/${PROJECT_NAME}" PROJECT_REPO="https://github.com/bashrc/${PROJECT_NAME}"
UTILS_FILES=/usr/share/${PROJECT_NAME}/utils/${PROJECT_NAME}-utils-* UTILS_FILES=/usr/share/${PROJECT_NAME}/utils/${PROJECT_NAME}-utils-*
for f in $UTILS_FILES for f in $UTILS_FILES
do do
source $f source $f
done done
read_config_param PROJECT_REPO read_config_param PROJECT_REPO
@ -176,20 +183,11 @@ function image_setup {
fi fi
sudo pacman -S --noconfirm device-mapper libaio liburcu fakeroot sudo pacman -S --noconfirm device-mapper libaio liburcu fakeroot
cd ~/develop/multipath-tools cd ~/develop/multipath-tools
makepkg makepkg --force --noconfirm
makepkg -i makepkg -i --force --noconfirm
cd ~/develop if [ ! -f /usr/share/debootstrap/scripts/${DEBIAN_VERSION} ]; then
if [ ! -f ~/develop/debootstrap_${DEBOOTSTRAP_VERSION}.tar.gz ]; then sudo wget https://raw.githubusercontent.com/bashrc/freedombone/stockholm/image_build/debootstrap/scripts/${DEBIAN_VERSION} /usr/share/debootstrap/scripts/${DEBIAN_VERSION}
wget http://http.debian.net/debian/pool/main/d/debootstrap/debootstrap_${DEBOOTSTRAP_VERSION}.tar.gz
fi fi
if [ ! -f ~/develop/debootstrap_${DEBOOTSTRAP_VERSION}.tar.gz ]; then
echo $'Failed to download debootstrap code'
return
fi
if [ ! -d ~/develop/debootstrap/scripts ]; then
tar -xzvf debootstrap_${DEBOOTSTRAP_VERSION}.tar.gz
fi
sudo mv ~/develop/debootstrap/scripts/* /usr/share/debootstrap/scripts
;; ;;
*) *)
echo $'Unkown operating system' echo $'Unkown operating system'