aboutsummaryrefslogtreecommitdiff
path: root/etc/local.d/vars.sh
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2022-02-23 20:19:37 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2022-02-23 20:43:27 -0500
commit12192865c3ca0e1c2139afabab508e0087b14982 (patch)
tree26ea5454dc976e87186e369685a1ac987bab2a61 /etc/local.d/vars.sh
downloadalpine-home-router-master.tar.gz
alpine-home-router-master.tar.xz
Diffstat (limited to 'etc/local.d/vars.sh')
-rwxr-xr-xetc/local.d/vars.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/etc/local.d/vars.sh b/etc/local.d/vars.sh
new file mode 100755
index 0000000..dcc326c
--- /dev/null
+++ b/etc/local.d/vars.sh
@@ -0,0 +1,17 @@
+# You can replace tty1 with ttyS0 for serial output
+exec >/dev/tty1 2>&1
+printf '\033[1;32m' # Green output for our scripts, comment out to disable.
+echo "Starting script: $0"
+set -x
+
+wan=eth0 # WAN / ISP uplink interface, assumed ip is provided by DHCP
+wan_hwaddr=EA:5D:EA:DB:EE:FF
+lan=eth1 # LAN interface
+# `sipcalc` is a useful program here
+lan_ip=192.168.0.1
+lan_net=192.168.0.0
+lan_mask_bits=24
+domain=router.local
+dhcp_range=192.168.0.30,192.168.0.230,24h
+# Specifically overrides upstream on `dnsmasq` for the DHCP clients
+dns_servers="1.1.1.1 8.8.4.4"