Commit 187321d1 authored by Christopher Spinrath's avatar Christopher Spinrath

New script to install packages from the offline repo manually

parent d45b37f2
#!/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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment