diff --git a/README.rst b/README.rst index 226a3ecf..8128eff9 100644 --- a/README.rst +++ b/README.rst @@ -47,6 +47,7 @@ Features * Loads Chromium at boot in full screen * Webpage can be changed from /boot/firmware/fullpageos.txt * You can use variable `{serial}` in the url to get device's serialnumber in the URL + * You can use variable `{hostname}` in the URL to get device's hostname in the URL * Default app is `FullPageDashboard `_, which lets you add multiple tabs changes that switch automatically. * Ships with preconfigured `X11VNC `_, for remote connection (password 'raspberry') * Specify a custom Splashscreen that gets displayed in the booting process instead of Kernel messages/text diff --git a/src/modules/fullpageos/filesystem/opt/custompios/scripts/get_url b/src/modules/fullpageos/filesystem/opt/custompios/scripts/get_url index 33dc3231..64f919e1 100755 --- a/src/modules/fullpageos/filesystem/opt/custompios/scripts/get_url +++ b/src/modules/fullpageos/filesystem/opt/custompios/scripts/get_url @@ -1,5 +1,5 @@ #!/bin/bash SERIAL=`cat /proc/cpuinfo | grep -i '^Serial' | awk '{ print $3 }'` -URL="$(head -n 1 /boot/firmware/fullpageos.txt | sed -e "s/{serial}/${SERIAL}/g")" +URL="$(head -n 1 /boot/fullpageos.txt | sed -e "s/{serial}/${SERIAL}/g" | sed -e "s/{hostname}/${HOSTNAME}/")" echo $URL