1
0
Fork 0
mirror of https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git synced 2024-11-24 14:50:09 +00:00
docker-adsb-ultrafeeder/rootfs/etc/s6-overlay/startup.d/50-store-uuid

29 lines
1.1 KiB
Text
Raw Normal View History

2023-08-31 02:59:09 +00:00
#!/command/with-contenv bash
2023-04-08 21:07:11 +00:00
#shellcheck shell=bash disable=SC2015,SC1091
source /scripts/common
2023-03-21 19:56:02 +00:00
# Write UUID to file
#---------------------------------------------------------------------------------------------
2024-03-29 23:21:45 +00:00
# Copyright (C) 2023-2024, Ramon F. Kolb (kx1t) and contributors
2023-03-21 19:56:02 +00:00
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation, either version 3 of the License, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with this program.
# If not, see <https://www.gnu.org/licenses/>.
#---------------------------------------------------------------------------------------------
if [[ -n "${UUID}" ]]
then
echo "$UUID" > /run/uuid
fi
exit 0