From 7813d279459e18eb9665a7725aa31bf87e8311a7 Mon Sep 17 00:00:00 2001 From: RomanNum3ral Date: Sun, 20 Jul 2025 15:13:31 +0000 Subject: [PATCH] Add 02-enable_hotspot --- 02-enable_hotspot | 64 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 02-enable_hotspot diff --git a/02-enable_hotspot b/02-enable_hotspot new file mode 100644 index 0000000..2d2e90a --- /dev/null +++ b/02-enable_hotspot @@ -0,0 +1,64 @@ +#!/bin/bash + +# Turn Raspberry Pi into Wi-Fi Hotspot for Jellyfin + +set -e + +echo "=== Installing dependencies ===" +sudo apt update +sudo apt install -y hostapd dnsmasq + +echo "=== Stopping services to configure ===" +sudo systemctl stop hostapd +sudo systemctl stop dnsmasq + +echo "=== Configuring static IP for wlan0 ===" +sudo bash -c 'cat >> /etc/dhcpcd.conf </dev/null || true + +sudo bash -c 'cat > /etc/dnsmasq.conf < /etc/hostapd/hostapd.conf <