Check that debian script was installed

This commit is contained in:
Bob Mottram 2016-11-05 19:20:26 +00:00
parent f517aeec32
commit 9e6b054708
1 changed files with 4 additions and 0 deletions

View File

@ -186,6 +186,10 @@ function image_setup {
makepkg -i --force --noconfirm makepkg -i --force --noconfirm
sudo wget https://raw.githubusercontent.com/bashrc/freedombone/stockholm/image_build/debootstrap/scripts/${DEBIAN_VERSION} -O /usr/share/debootstrap/scripts/debscript sudo wget https://raw.githubusercontent.com/bashrc/freedombone/stockholm/image_build/debootstrap/scripts/${DEBIAN_VERSION} -O /usr/share/debootstrap/scripts/debscript
sudo cp -f /usr/share/debootstrap/scripts/debscript /usr/share/debootstrap/scripts/${DEBIAN_VERSION} sudo cp -f /usr/share/debootstrap/scripts/debscript /usr/share/debootstrap/scripts/${DEBIAN_VERSION}
if [ ! -f /usr/share/debootstrap/scripts/${DEBIAN_VERSION} ]; then
echo $"No debian dbootstrap script was found for $DEBIAN_VERSION"
return
fi
;; ;;
*) *)
echo $'Unkown operating system' echo $'Unkown operating system'