rpi: run fix-broken after packages install
This commit is contained in:
@@ -160,6 +160,10 @@ echo "root:toor" | chpasswd
|
||||
rm -f /etc/udev/rules.d/70-persistent-net.rules
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get --yes --allow-change-held-packages install ${packages}
|
||||
if [[ $? > 0 ]];
|
||||
then
|
||||
apt-get --yes --allow-change-held-packages --fix-broken install
|
||||
fi
|
||||
apt-get --yes --allow-change-held-packages install ${desktop} ${tools}
|
||||
if [[ $? > 0 ]];
|
||||
then
|
||||
|
||||
4
rpi.sh
4
rpi.sh
@@ -165,6 +165,10 @@ echo "root:toor" | chpasswd
|
||||
rm -f /etc/udev/rules.d/70-persistent-net.rules
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get --yes --allow-change-held-packages install ${packages}
|
||||
if [[ $? > 0 ]];
|
||||
then
|
||||
apt-get --yes --allow-change-held-packages --fix-broken install
|
||||
fi
|
||||
apt-get --yes --allow-change-held-packages install ${desktop} ${tools}
|
||||
if [[ $? > 0 ]];
|
||||
then
|
||||
|
||||
@@ -192,6 +192,10 @@ echo "root:toor" | chpasswd
|
||||
rm -f /etc/udev/rules.d/70-persistent-net.rules
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get --yes --allow-change-held-packages install ${packages}
|
||||
if [[ $? > 0 ]];
|
||||
then
|
||||
apt-get --yes --allow-change-held-packages --fix-broken install
|
||||
fi
|
||||
apt-get --yes --allow-change-held-packages install ${desktop} ${tools}
|
||||
if [[ $? > 0 ]];
|
||||
then
|
||||
|
||||
@@ -205,6 +205,10 @@ echo "root:toor" | chpasswd
|
||||
rm -f /etc/udev/rules.d/70-persistent-net.rules
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get --yes --allow-change-held-packages install ${packages}
|
||||
if [[ $? > 0 ]];
|
||||
then
|
||||
apt-get --yes --allow-change-held-packages --fix-broken install
|
||||
fi
|
||||
apt-get --yes --allow-change-held-packages install ${desktop} ${tools}
|
||||
if [[ $? > 0 ]];
|
||||
then
|
||||
|
||||
4
rpi2.sh
4
rpi2.sh
@@ -156,6 +156,10 @@ echo "root:toor" | chpasswd
|
||||
rm -f /etc/udev/rules.d/70-persistent-net.rules
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get --yes --allow-change-held-packages install ${packages}
|
||||
if [[ $? > 0 ]];
|
||||
then
|
||||
apt-get --yes --allow-change-held-packages --fix-broken install
|
||||
fi
|
||||
apt-get --yes --allow-change-held-packages install ${desktop} ${tools}
|
||||
if [[ $? > 0 ]];
|
||||
then
|
||||
|
||||
@@ -219,6 +219,10 @@ apt-get -y install locales console-common less nano git
|
||||
echo "root:toor" | chpasswd
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get --yes --allow-change-held-packages install ${packages}
|
||||
if [[ $? > 0 ]];
|
||||
then
|
||||
apt-get --yes --allow-change-held-packages --fix-broken install
|
||||
fi
|
||||
apt-get --yes --allow-change-held-packages install ${desktop} ${tools}
|
||||
if [[ $? > 0 ]];
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user