Skip to content
This repository has been archived by the owner on Oct 30, 2019. It is now read-only.

Allow reboot from script #72

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions package/opt/hassbian/suites/upgrade_hassbian.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
function hassbian-show-short-info {
echo "Upgrade the base OS installation on this system"
echo "Home Assistant upgrade script for Hassbian"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that this was reverted to an earlier version?

}

function hassbian-show-long-info {
Expand All @@ -25,11 +25,16 @@ sudo apt upgrade -y
echo
echo "Uppgrade complete."
echo
echo "Note that you may need to reboot the raspberry Pi for some updates to take effect."
echo
echo "If you have issues with this script, please say something in the #Hassbian channel on Discord."
echo
return 0
echo "Note that you may need to reboot the raspberry Pi for some updates to take effect."
echo
read -p "Would you like to reboot your raspberry Pi now? (y/n)?" choice
case "$choice" in
y|Y ) sudo reboot;;
n|N ) echo;;
* ) echo "invalid";;
esac
}

# Make this script function as it always has if run standalone, rather than issue a warning and do nothing.
Expand Down