Skip to content
Permalink
Browse files

Fix Armbian stuff.

  • Loading branch information...
Cat5TV committed May 5, 2019
1 parent d47bbc6 commit 112aeed8ba016fa6c47741229dbc0ec8cc78ce8b
Showing with 31 additions and 0 deletions.
  1. +31 −0 fixes.sh
@@ -429,6 +429,37 @@ if (( $(awk 'BEGIN {print ("'$ver'" >= "'1.5'")}') )); then
cp -f /root/nems/nems-migrator/data/1.5/nagios/plugins/nems_sendmail_host /usr/local/nagios/libexec/
fi


# Fix issues from early Armbian-based Build Bases
if [[ -d /usr/lib/armbian ]]; then

# Stop /tmp and /var/log from being loaded in zram
sed -i '/\/tmp/d' /etc/fstab
umount /tmp 2>&1

systemctl stop armbian-zram-config
systemctl disable armbian-zram-config

systemctl stop armbian-ramlog
systemctl disable armbian-ramlog

# Delete the services
rm -f /etc/systemd/system/sysinit.target.wants/armbian-*

# Remove Armbian-specific stuff
rm -rf /usr/lib/armbian
rm -rf /usr/share/armbian
rm -f /boot/armbian_first_run*
apt -y remove --purge armbian-config

# Change name of armbianEnv file to bootEnv
mv /boot/armbianEnv.txt /boot/bootEnv.txt
sed -i 's/armbianEnv/bootEnv/g' /boot/boot.cmd

reboot=1

fi

fi


0 comments on commit 112aeed

Please sign in to comment.
You can’t perform that action at this time.