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 <