Other Dynamic Wireless Network Name (SSID) on Raspberry Pi hotspot July 13, 2019 jdboyd This mostly for any Linux system using systemd, albeit the make_ssid.sh script will need adjusted for where you want to get the ID from. In the example, it uses the Raspberry Pi’s serial number. Mac address could be another good source to use. make_ssid.sh goes in /etc/hostapd/ The service file goes in /etc/systemd/system/ view raw README hosted with ❤ by GitHub [Unit] Description=Setup ssid to use for hostapd Before=hostapd.service [Service] Type=oneshot ExecStart=/bin/bash /etc/hostapd/make_ssid.sh StandardOutput=journal+console [Install] WantedBy=multi-user.target view raw hostapd_set_ssid.service hosted with ❤ by GitHub #!/bin/bash set -e egrep -v "^ssid" /etc/hostapd/hostapd.conf > /tmp/hostapd.new grep Serial /proc/cpuinfo | awk '{ print "ssid=example_ssid_" $3 }' >> /tmp/hostapd.new mv /tmp/hostapd.new /etc/hostapd/hostapd.conf view raw make_ssid.sh hosted with ❤ by GitHub Share this:ShareClick to share on Pocket (Opens in new window)Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)Click to share on Tumblr (Opens in new window)Click to share on Pinterest (Opens in new window)Click to print (Opens in new window)Click to share on LinkedIn (Opens in new window)Click to share on Reddit (Opens in new window) Related