#!/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 <