Skip to content
Snippets Groups Projects
Commit 187321d1 authored by Christopher Spinrath's avatar Christopher Spinrath
Browse files

New script to install packages from the offline repo manually

parent d45b37f2
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
MY_DIR="$( readlink -f "$( dirname "${BASH_SOURCE[0]}" )" )"
HAVELIPSTICK=0
#Offline-Repo einbinden
if bash "$MY_DIR/infuse_offline_repo.sh"
then
HAVELIPSTICK=1
echo "USB-Repository gefunden und eingebunden"
else
if [[ $? -eq 2 ]]
then
# Exit code 2 is handed up from mount-stick-repo.sh -> "Installation abbrechen"
echo "Installation abgebrochen"
exit 2
else
#warn "LIP-Install-USB-Stick nicht nutzbar."
#warn "Stelle eine Internetverbindung her und mache weiter (langsames Installieren)"
#warn "Wenn Du nicht weiter weißt, frage einen Helfer."
#pressenter
echo "LIP-Install-USB-Stick nicht nutzbar."
fi
fi
apt-get install $@
echo "Deaktiviere LIP Software Repository"
bash $MY_DIR/liprepoctl.sh off
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment