Skip to content

Commit 812cbf1

Browse files
committed
Fix bootstrap script
1 parent 83ee28b commit 812cbf1

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

rpi/bootstrap.sh

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
66

77
SRC_VERSION=${1-}
88

9+
function updateSystem() {
10+
sudo apt-get update
11+
sudo apt-get -y dist-upgrade
12+
}
13+
914
function installService() {
10-
if [[ ! -f ~/.local/share/systemd/user/ssl-remote-control.service ]]; then
11-
mkdir -p ~/.local/share/systemd/user/
12-
cp "$SCRIPT_DIR/ssl-remote-control.service" ~/.local/share/systemd/user/ssl-remote-control.service
13-
systemctl --user enable ssl-remote-control.service
14-
fi
15+
mkdir -p ~/.local/share/systemd/user/
16+
cp "$SCRIPT_DIR/ssl-remote-control.service" ~/.local/share/systemd/user/ssl-remote-control.service
17+
systemctl --user enable ssl-remote-control.service
1518
}
1619

1720
function installRemoteControl() {
@@ -33,7 +36,7 @@ function installBrowser() {
3336
sudo apt-get install --no-install-recommends -y \
3437
xserver-xorg-video-all xserver-xorg-input-all xserver-xorg-core xinit x11-xserver-utils \
3538
unclutter \
36-
xrandr \
39+
xinput \
3740
chromium-browser
3841

3942
# Enable Auto-Login on console
@@ -51,7 +54,7 @@ function configurePi() {
5154
sudo cp "${SCRIPT_DIR}/config.txt" /boot/config.txt
5255
}
5356

54-
sudo apt-get update
57+
updateSystem
5558
installService
5659
installRemoteControl
5760
installBrowser

0 commit comments

Comments
 (0)