From bccd35587985c96c1ae179ab2d6981da5357a76c Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Thu, 4 Feb 2021 19:40:52 -0600 Subject: [PATCH] Undo Raspbian adding MS repo --- rootfs/standard/usr/bin/mynode_post_upgrade.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/rootfs/standard/usr/bin/mynode_post_upgrade.sh b/rootfs/standard/usr/bin/mynode_post_upgrade.sh index 141a5f54..7b0b10e0 100755 --- a/rootfs/standard/usr/bin/mynode_post_upgrade.sh +++ b/rootfs/standard/usr/bin/mynode_post_upgrade.sh @@ -698,6 +698,15 @@ rm -f /etc/update-motd.d/41-armbian-config || true rm -f /etc/update-motd.d/98-armbian-autoreboot-warn || true +# Random Cleanup +if [ -f /etc/apt/sources.list.d/vscode.list ]; then + sed -i "s/^deb/#deb/g" /etc/apt/sources.list.d/vscode.list +fi +if [ -f /etc/apt/trusted.gpg.d/microsoft.gpg ]; then + rm /etc/apt/trusted.gpg.d/microsoft.gpg +fi + + # Clean apt-cache apt-get clean