Skip to content

Conversation

@erinharrington-12
Copy link
Contributor

This PR:

  • Update files for USB updating Wombats to new IDE (voldigate)
  • Fixes wired connection bug that didn't properly setup the direct ethernet link between Wombat and computer
  • Updates botui.deb to remove unused display boxes to right of live camera view

Copy link
Contributor

@twells46 twells46 left a comment

Choose a reason for hiding this comment

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

Everything major seems to work fine: the update goes off without a hitch, BotUI launches, and the IDE starts up, but there are a few little details that could be cleaned up.


[Service]
ExecStart=/home/kipr/wombat-os/configFiles/checkWombatWiredConnect.sh
ExecStart=/home/kipr/wombat-os/configFiles/checkWombatWiredConnect_temp.sh
Copy link
Contributor

Choose a reason for hiding this comment

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

This filename is incorrect. Did you mean /home/kipr/wombat-os/configFiles/checkWombatWiredConnection_temp.sh?


while true; do
# Check if Ethernet cable is plugged in
if ethtool "$ETH_IF" 2>/dev/null | grep -q "Link detected: yes"; then
Copy link
Contributor

Choose a reason for hiding this comment

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

This line can be replaced by a simple cat command

if [ "$(cat /sys/class/net/eth0/link_mode)" -eq "1" ]; then

echo "$(date) - Ethernet not detected, bringing down $WIRED_CONN"

# Bring down wired connection
nmcli connection down "$WIRED_CONN"
Copy link
Contributor

@twells46 twells46 Sep 17, 2025

Choose a reason for hiding this comment

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

Same as other issue, this block doesn't seem like it needs to be re-run constantly.

fi

# Check every 5 seconds
sleep 5
Copy link
Contributor

Choose a reason for hiding this comment

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

Since you are already managing this script with systemd and have Restart set to Always, this while loop isn't strictly necessary. You can remove the while loop here and add RestartSec=5 to the systemd unit file above and achieve roughly the same effect while also allowing systemd to handle keepalive logic.

git \
podman \
libxcb-doc -y

Copy link
Contributor

Choose a reason for hiding this comment

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

You can free even more space by removing the newly orphaned packages:

sudo apt autoremove --purge

echo "$(date) - Ethernet detected, bringing up $WIRED_CONN"

# Bring up wired connection
nmcli connection up "$WIRED_CONN"
Copy link
Contributor

@twells46 twells46 Sep 17, 2025

Choose a reason for hiding this comment

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

Does this nmcli command really need to be re-run every 5 seconds? nmcli and systemctl commands are relatively heavy, so re-running them constantly is very inefficient.

I would suggest adding a stamp file somewhere to indicate which state it's in and checking that first to determine if you need to run the rest of this then block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants