1
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-11-24 13:46:18 +00:00
Lakka-LibreELEC/projects/L4T/packages/systemd/scripts/userconfig-setup
2022-04-23 21:36:57 +02:00

13 lines
428 B
Bash
Executable File

#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)
# Remove those sample files that we manage
for sample in $(find /storage/.config -name '*.sample' 2>/dev/null); do
[ -f /usr/config/${sample:17} ] && rm -f ${sample}
done
# Copy config files, but don't overwrite - this should replace our sample files
false | cp -iRp /usr/config/* /storage/.config/ &>/dev/null