Skip to content

Commit

Permalink
Update pistar-upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyTaylorTweet committed Sep 3, 2019
1 parent be704cf commit 9d361cd
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion pistar-upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -827,16 +827,42 @@ main_function() {
;;
4.1.0-RC4)
#sed -i 's/4.1.0-RC4/4.1.0-RC5/g' /etc/pistar-release

# Fix up some minor issues with resolvconf's config
#sed -i '2ifi' /etc/dhcp/dhclient-enter-hooks.d/resolvconf
#sed -i '2i\\ttouch /var/lib/dhcpcd5/resolv.conf' /etc/dhcp/dhclient-enter-hooks.d/resolvconf
#sed -i '2iif [ ! -f "/var/lib/dhcpcd5/resolv.conf" ]; then' /etc/dhcp/dhclient-enter-hooks.d/resolvconf
#sed -i '2i\\n' /etc/dhcp/dhclient-enter-hooks.d/resolvconf

# Fix fstab to accunt for the change
#sed -i "/\/var\/lib\/dhcpcd5/c\\tmpfs\t\t\t\/var\/lib\/dhcpcd5\ttmpfs\tnodev,noatime,nosuid,mode=1777,size=32k\t\t0\t0" /etc/fstab

# Change the filesystem to match
#cp /etc/resolv.conf /var/lib/dhcpcd5/resolv.conf
#rm -rf /etc/resolv.conf
#rm -rf /etc/resolv.conf.bak
#ln -s /var/lib/dhcpcd5/resolv.conf /etc/resolv.conf

# Re-create the MOTD
#/usr/local/sbin/pistar-motdgen

# OK we are done
#Message="Upgraded from ${pistarCurVersion} to 4.1.0-RC5..."

Message="You are already running the latest version..."
;;
4.1.0-RC5)
#sed -i 's/4.1.0-RC5/4.1.0-RC6/g' /etc/pistar-release

# Re-create the MOTD
#/usr/local/sbin/pistar-motdgen

# OK we are done
#Message="Upgraded from ${pistarCurVersion} to 4.1.0-RC6..."

Message="You are already running the latest version..."
;;
4.1.0-RC6)
Message="You are already running the latest version..."
;;
4.1.0)
Expand Down

0 comments on commit 9d361cd

Please sign in to comment.