Skip to content

Commit

Permalink
Add dummy ARP cache for screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
swsnr committed Dec 19, 2024
1 parent a228933 commit 73f3da4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions screenshots/arp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
IP address HW type Flags HW address Mask Device
192.168.2.100 0x1 0x2 62:6f:a3:f8:3e:ef * eth0
192.168.2.101 0x1 0x2 a3:6f:7f:3a:9d:ff * eth0
5 changes: 4 additions & 1 deletion screenshots/run-for-screenshot.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

set -euo pipefail

DEVICES_FILE="${1:-"$(git rev-parse --show-toplevel)/screenshots/devices.json"}"

variables=(
# Run app with default settings: Force the in-memory gsettings backend to
# block access to standard Gtk settings, and tell Adwaita not to access
Expand All @@ -14,4 +16,5 @@ variables=(
)

exec env "${variables[@]}" cargo run -- \
--devices-file "$(git rev-parse --show-toplevel)/screenshots/devices.json"
--devices-file "${DEVICES_FILE}" \
--arp-cache-file "$(git rev-parse --show-toplevel)/screenshots/arp"

0 comments on commit 73f3da4

Please sign in to comment.