#!/bin/sh # SPDX-License-Identifier: Apache-2.0 # Copyright (C) 2023-present Fewtarius (https://github.com/fewtarius) # Minimal OS variable loading for performance . /etc/profile.d/001-functions if [ ! -f "/storage/.config/moonlight/moonlight.conf" ] then mkdir -p /storage/.config/moonlight cp /usr/config/moonlight/moonlight.conf /storage/.config/moonlight/moonlight.conf fi sed -i "s#@MWIDTH@#$(fbwidth)#g; s#@MHEIGHT@#$(fbheight)#g" /storage/.config/moonlight/moonlight.conf