chromebook-linux/unsafe-update-payload.sh
2025-06-08 21:06:03 -05:00

34 lines
589 B
Bash

function unsafeUpdate() {
echo "Running user updates."
# Clean up after installation.
if [[ -f install.sh ]]; then
rm install.sh
fi
if [[ -d chromebook-linux ]]; then
rm -rf chromebook-linux
fi
# Additional updates that require 'user'.
}
function unsafeUpdateRoot() {
echo "Running root updates."
# Handle system updates.
while : ; do
apt-get update
[[ $? -ne 0 ]] || break
done
apt-get -fy upgrade
apt-get -fy dist-upgrade
apt-get -fy autoremove
if [[ -f /var/run/reboot-required ]] then
shutdown -r now
fi
# Additional updates that require root.
}