scripts: add modifications for ROCKNIX

This commit is contained in:
ROCKNIX Team
2025-07-13 18:50:23 +01:00
parent 130e8312ea
commit f6010e7b77
12 changed files with 527 additions and 239 deletions
+12 -1
View File
@@ -79,7 +79,7 @@ if [ "${TARGET}" = "target" ]; then
if [ -d ${PKG_TMP_DIR}/profile.d ]; then
mkdir -p ${INSTALL}/etc/profile.d
cp ${PKG_TMP_DIR}/profile.d/*.conf ${INSTALL}/etc/profile.d
cp ${PKG_TMP_DIR}/profile.d/* ${INSTALL}/etc/profile.d
fi
if [ -d ${PKG_TMP_DIR}/tmpfiles.d ]; then
@@ -87,6 +87,17 @@ if [ "${TARGET}" = "target" ]; then
cp ${PKG_TMP_DIR}/tmpfiles.d/*.conf ${INSTALL}/usr/lib/tmpfiles.d
fi
if [ -d ${PKG_TMP_DIR}/autostart ]; then
mkdir -p ${INSTALL}/usr/lib/autostart/common
cp ${PKG_TMP_DIR}/autostart/* ${INSTALL}/usr/lib/autostart/common
chmod 0755 ${INSTALL}/usr/lib/autostart/common/*
fi
if [ -d ${PKG_TMP_DIR}/daemons ]; then
mkdir -p ${INSTALL}/usr/lib/autostart/daemons
cp ${PKG_TMP_DIR}/daemons/* ${INSTALL}/usr/lib/autostart/daemons
fi
if [ -d ${PKG_TMP_DIR}/system.d ]; then
mkdir -p ${INSTALL}/usr/lib/systemd/system
cp -Pr ${PKG_TMP_DIR}/system.d/*.* ${INSTALL}/usr/lib/systemd/system