Commit a1b95eab0c64f21f0dae577228fde681c8ce9f96

Thomas de Grivel 2023-10-31T18:47:28

support for multiple ips

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/bin/egress_interface b/bin/egress_interface
index 2833af6..2bd9148 100755
--- a/bin/egress_interface
+++ b/bin/egress_interface
@@ -1 +1,2 @@
+#!/bin/sh
 ifconfig egress | head -n 1 | cut -d : -f 1
diff --git a/bin/host-ip b/bin/host-ip
index e26a195..2b7b3b8 100755
--- a/bin/host-ip
+++ b/bin/host-ip
@@ -1,2 +1,2 @@
 #!/bin/sh
-ifconfig egress | grep inet | cut -d ' ' -f 2
+ifconfig egress | grep 'inet ' | head -n 1 | cut -d ' ' -f 2
diff --git a/bin/update_header b/bin/update_header
new file mode 100755
index 0000000..4887618
Binary files /dev/null and b/bin/update_header differ