diff --git a/nvmesystem/install.sh b/nvmesystem/install.sh index 0859aa5..6e08273 100755 --- a/nvmesystem/install.sh +++ b/nvmesystem/install.sh @@ -55,20 +55,21 @@ elif [ "${1}" = "late" ]; then mkdir -p "/tmpRoot/usr/lib/systemd/system" DEST="/tmpRoot/usr/lib/systemd/system/nvmesystem.service" - echo "[Unit]" >${DEST} - echo "Description=Modify storage panel" >>${DEST} - echo "After=multi-user.target" >>${DEST} - echo "After=synoscgi.service" >>${DEST} - echo "After=storagepanel.service" >>${DEST} # storagepanel - echo >>${DEST} - 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} + cat > ${DEST} <