Skip to content

Commit

Permalink
Fix bootstrap script
Browse files Browse the repository at this point in the history
  • Loading branch information
g3force committed Jun 27, 2022
1 parent 83ee28b commit 812cbf1
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions rpi/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"

SRC_VERSION=${1-}

function updateSystem() {
sudo apt-get update
sudo apt-get -y dist-upgrade
}

function installService() {
if [[ ! -f ~/.local/share/systemd/user/ssl-remote-control.service ]]; then
mkdir -p ~/.local/share/systemd/user/
cp "$SCRIPT_DIR/ssl-remote-control.service" ~/.local/share/systemd/user/ssl-remote-control.service
systemctl --user enable ssl-remote-control.service
fi
mkdir -p ~/.local/share/systemd/user/
cp "$SCRIPT_DIR/ssl-remote-control.service" ~/.local/share/systemd/user/ssl-remote-control.service
systemctl --user enable ssl-remote-control.service
}

function installRemoteControl() {
Expand All @@ -33,7 +36,7 @@ function installBrowser() {
sudo apt-get install --no-install-recommends -y \
xserver-xorg-video-all xserver-xorg-input-all xserver-xorg-core xinit x11-xserver-utils \
unclutter \
xrandr \
xinput \
chromium-browser

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

sudo apt-get update
updateSystem
installService
installRemoteControl
installBrowser
Expand Down

0 comments on commit 812cbf1

Please sign in to comment.