Skip to content

Commit

Permalink
ensure building latest version of firmware
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamink committed Apr 9, 2024
1 parent fb1a298 commit 5824799
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
3 changes: 2 additions & 1 deletion scripts/build-install-fn-pc-apple.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ git clone https://github.com/FujiNetWIFI/fujinet-firmware
FNPIO_PATH="$FN_PATH/fujinet-firmware"
mkdir -p "$FNPIO_PATH/build"
cd "$FNPIO_PATH" || exit
git pull --rebase

./build.sh -cp APPLE

Expand All @@ -39,4 +40,4 @@ WantedBy=multi-user.target
EOF

sudo systemctl daemon-reload
sudo systemctl enable fn-pc-apple.service
sudo systemctl enable fn-pc-apple.service
3 changes: 2 additions & 1 deletion scripts/build-install-fn-pc-atari.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ git clone https://github.com/FujiNetWIFI/fujinet-firmware
FNPIO_PATH="$FN_PATH/fujinet-firmware"
mkdir -p "$FNPIO_PATH/build"
cd "$FNPIO_PATH" || exit
git pull --rebase

./build.sh -cp ATARI

Expand All @@ -39,4 +40,4 @@ WantedBy=multi-user.target
EOF

sudo systemctl daemon-reload
sudo systemctl enable fn-pc-atari.service
sudo systemctl enable fn-pc-atari.service
2 changes: 1 addition & 1 deletion scripts/fujinet-sudoers.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -x

echo "$P_USERNAME ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/fujinet
echo "$P_USERNAME ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/fujinet

sudo chmod 440 /etc/sudoers.d/fujinet
15 changes: 11 additions & 4 deletions scripts/user-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,28 @@ mkdir "/home/$P_USERNAME/Desktop"
mkdir "/home/$P_USERNAME/Pictures"
mkdir "/home/$P_USERNAME/Downloads"
mkdir "/home/$P_USERNAME/Documents"
mkdir "/home/$P_USERNAME/.local/bin"
mkdir -p "/home/$P_USERNAME/.local/bin"
mkdir -p "${P_FN_PATH:-/home/$P_USERNAME/FujiNet}"

if [[ "$PACKER_BUILD_TYPE" == "qemu" ]]
then
MONITOR="monitorVirtual-1"
else
MONITOR="monitorVirtual1"
fi

DISABLE_LIGHT_LOCKER_PATH="/home/$P_USERNAME/.config/autostart/light-locker.desktop"

cp /tmp/wallpaper.png "/home/$P_USERNAME/Pictures/wallpaper.png"
cp /tmp/fn-logo-black.png "/home/$P_USERNAME/Pictures/fn-logo-black.png"
#cp /tmp/fn-logo-black.png "/home/$P_USERNAME/Pictures/fn-logo-black.png"

cat <<EOF | sudo tee /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml
<?xml version="1.0" encoding="UTF-8"?>
<channel name="xfce4-desktop" version="1.0">
<property name="backdrop" type="empty">
<property name="screen0" type="empty">
<property name="monitorVirtual1" type="empty">
<property name="$MONITOR" type="empty">
<property name="workspace0" type="empty">
<property name="color-style" type="int" value="1"/>
<property name="image-style" type="int" value="4"/>
Expand Down Expand Up @@ -59,4 +66,4 @@ mkdir -p .config/autostart
cat <<EOF > "$DISABLE_LIGHT_LOCKER_PATH"
[Desktop Entry]
Hidden=true
EOF
EOF

0 comments on commit 5824799

Please sign in to comment.