1
0
Fork 0
mirror of https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git synced 2024-12-26 06:12:00 +00:00
docker-adsb-ultrafeeder/rootfs/etc/cont-init.d/50-store-uuid
Matthias Wirth 75ee015381 improve s6wrap usage, make sure service stop is respected
alias can only be used in interactive shell scripts, replace with bash array var
2023-05-05 14:48:49 +02:00

28 lines
1 KiB
Text

#!/usr/bin/with-contenv bash
#shellcheck shell=bash disable=SC2015,SC1091
source /scripts/common
# Write UUID to file
#---------------------------------------------------------------------------------------------
# Copyright (C) 2023, Ramon F. Kolb (kx1t)
#
# 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