Skip to content
This repository was archived by the owner on Dec 31, 2019. It is now read-only.

Commit 5a8f974

Browse files
committed
auto reboot after update
1 parent 9697ee2 commit 5a8f974

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

update/default_openplotter_desk.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ echo
2929
echo "DISABLING SCREENSAVER..."
3030
echo
3131
sudo bash -c 'echo -e "\n@xset s 0 0\n@xset s noblank\n@xset s noexpose\n@xset dpms 0 0 0\n" >> /home/pi/.config/lxsession/LXDE-pi/autostart'
32+
shutdown -r +1
3233
echo
33-
read -p "FINISHED, PRESS ENTER TO REBOOT SYSTEM."
34+
read -p "FINISHED, SYSTEM WILL REBOOT IN 1 MIN, PRESS ENTER TO REBOOT NOW."
3435
shutdown -r now

update/update_OpenPlotter.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ echo
5757
rm -rf openplotter
5858
rm -rf $DIRDATE
5959
mv openplotter_tmp openplotter
60+
shutdown -r +1
6061
echo
61-
read -p "FINISHED, PRESS ENTER TO REBOOT SYSTEM."
62+
read -p "FINISHED, SYSTEM WILL REBOOT IN 1 MIN, PRESS ENTER TO REBOOT NOW."
6263
shutdown -r now
6364

update/update_dependencies.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ make
103103
sudo make install
104104

105105
cd $HOME$op_folder/compiling
106+
pkill aisdecoder
106107
git clone https://github.com/$repository/aisdecoder.git
107108
cd aisdecoder
108109
cmake -DCMAKE_BUILD_TYPE=release

0 commit comments

Comments
 (0)