nvmesystem: update

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-07-03 18:44:43 +02:00
parent 31d8bb6a6d
commit 3ff6f3eb57

View File

@ -55,20 +55,21 @@ elif [ "${1}" = "late" ]; then
mkdir -p "/tmpRoot/usr/lib/systemd/system" mkdir -p "/tmpRoot/usr/lib/systemd/system"
DEST="/tmpRoot/usr/lib/systemd/system/nvmesystem.service" DEST="/tmpRoot/usr/lib/systemd/system/nvmesystem.service"
echo "[Unit]" >${DEST} cat > ${DEST} <<EOF
echo "Description=Modify storage panel" >>${DEST} [Unit]
echo "After=multi-user.target" >>${DEST} Description=Modify storage panel
echo "After=synoscgi.service" >>${DEST} After=multi-user.target
echo "After=storagepanel.service" >>${DEST} # storagepanel After=synoscgi.service
echo >>${DEST} After=storagepanel.service
echo "[Service]" >>${DEST}
echo "Type=oneshot" >>${DEST}
echo "RemainAfterExit=yes" >>${DEST}
echo "ExecStart=/usr/bin/nvmesystem.sh" >>${DEST}
echo >>${DEST}
echo "[Install]" >>${DEST}
echo "WantedBy=multi-user.target" >>${DEST}
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/nvmesystem.sh
[Install]
WantedBy=multi-user.target
EOF
mkdir -vp /tmpRoot/usr/lib/systemd/system/multi-user.target.wants mkdir -vp /tmpRoot/usr/lib/systemd/system/multi-user.target.wants
ln -vsf /usr/lib/systemd/system/nvmesystem.service /tmpRoot/usr/lib/systemd/system/multi-user.target.wants/nvmesystem.service ln -vsf /usr/lib/systemd/system/nvmesystem.service /tmpRoot/usr/lib/systemd/system/multi-user.target.wants/nvmesystem.service