diff --git a/acpid/install.sh b/acpid/install.sh index 43941cf..717e2fb 100755 --- a/acpid/install.sh +++ b/acpid/install.sh @@ -13,7 +13,7 @@ if [ "${1}" = "late" ]; then tar -zxf /addons/acpid-7.1.tgz -C /tmpRoot/usr/ ./bin ./sbin ./lib tar -zxf /addons/acpid-7.1.tgz -C /tmpRoot/ ./etc - sed -i '/^Exec/s|=/|=-/|g' /tmpRoot/usr/lib/systemd/system/acpid.service + sed -i '/^Exec/s|=/|=/|g' /tmpRoot/usr/lib/systemd/system/acpid.service if [ -f /usr/lib/modules/button.ko ]; then cp -vf /usr/lib/modules/button.ko /tmpRoot/usr/lib/modules/button.ko else @@ -33,9 +33,9 @@ if [ "${1}" = "late" ]; then # echo "Restart=always" >>${DEST} # echo "RestartSec=30" >>${DEST} # echo "PIDFile=/var/run/acpid.pid" >>${DEST} - # echo "ExecStartPre=-/usr/sbin/modprobe button" >>${DEST} + # echo "ExecStartPre=/usr/sbin/modprobe button" >>${DEST} # echo "ExecStart=/usr/sbin/acpid" >>${DEST} - # echo "ExecStopPost=-/usr/sbin/modprobe -r button" >>${DEST} + # echo "ExecStopPost=/usr/sbin/modprobe -r button" >>${DEST} # echo >>${DEST} # echo "[X-Synology]" >>${DEST} # echo "Author=Virtualization Team" >>${DEST} diff --git a/console/install.sh b/console/install.sh index ca5bcf3..4cd334d 100755 --- a/console/install.sh +++ b/console/install.sh @@ -59,7 +59,7 @@ elif [ "${1}" = "late" ]; then echo -e "DSM mode\n" >/tmpRoot/etc/issue cp -fv /tmpRoot/usr/lib/systemd/system/serial-getty\@.service /tmpRoot/usr/lib/systemd/system/getty\@tty1.service - sed -i 's|^ExecStart=.*|ExecStart=-/sbin/agetty %I 115200 linux|' /tmpRoot/usr/lib/systemd/system/getty\@tty1.service + sed -i 's|^ExecStart=.*|ExecStart=/sbin/agetty %I 115200 linux|' /tmpRoot/usr/lib/systemd/system/getty\@tty1.service mkdir -vp /tmpRoot/usr/lib/systemd/system/getty.target.wants ln -vsf /usr/lib/systemd/system/getty\@tty1.service /tmpRoot/usr/lib/systemd/system/getty.target.wants/getty\@tty1.service diff --git a/misc/install.sh b/misc/install.sh index 27d306a..43d5825 100755 --- a/misc/install.sh +++ b/misc/install.sh @@ -215,7 +215,7 @@ elif [ "${1}" = "late" ]; then # service SERVICE_PATH="/tmpRoot/usr/lib/systemd/system" - sed -i 's|ExecStart=/|ExecStart=-/|g' ${SERVICE_PATH}/syno-oob-check-status.service ${SERVICE_PATH}/SynoInitEth.service ${SERVICE_PATH}/syno_update_disk_logs.service + sed -i 's|ExecStart=/|ExecStart=/|g' ${SERVICE_PATH}/syno-oob-check-status.service ${SERVICE_PATH}/SynoInitEth.service ${SERVICE_PATH}/syno_update_disk_logs.service # getty for I in $(cat /proc/cmdline 2>/dev/null | grep -oE 'getty=[^ ]+' | sed 's/getty=//'); do TTYN="$(echo "${I}" | cut -d',' -f1)" @@ -226,7 +226,7 @@ elif [ "${1}" = "late" ]; then if [ -n "${TTYN}" ] && [ -e "/dev/${TTYN}" ]; then echo "Make getty\@${TTYN}.service" cp -fv /tmpRoot/usr/lib/systemd/system/serial-getty\@.service /tmpRoot/usr/lib/systemd/system/getty\@${TTYN}.service - sed -i "s|^ExecStart=.*|ExecStart=-/sbin/agetty %I ${BAUD:-115200} linux|" /tmpRoot/usr/lib/systemd/system/getty\@${TTYN}.service + sed -i "s|^ExecStart=.*|ExecStart=/sbin/agetty %I ${BAUD:-115200} linux|" /tmpRoot/usr/lib/systemd/system/getty\@${TTYN}.service mkdir -vp /tmpRoot/usr/lib/systemd/system/getty.target.wants ln -vsf /usr/lib/systemd/system/getty\@${TTYN}.service /tmpRoot/usr/lib/systemd/system/getty.target.wants/getty\@${TTYN}.service fi diff --git a/revert/install.sh b/revert/install.sh index 6ed0ab0..5fad1d2 100755 --- a/revert/install.sh +++ b/revert/install.sh @@ -31,7 +31,7 @@ if [ "${1}" = "late" ]; then echo "[Service]" >>${DEST} echo "Type=oneshot" >>${DEST} echo "RemainAfterExit=yes" >>${DEST} - echo "ExecStart=-/usr/arc/revert.sh" >>${DEST} + echo "ExecStart=/usr/arc/revert.sh" >>${DEST} echo >>${DEST} echo "[Install]" >>${DEST} echo "WantedBy=multi-user.target" >>${DEST} diff --git a/sspatch/install.sh b/sspatch/install.sh index 74a68aa..d7dcce1 100755 --- a/sspatch/install.sh +++ b/sspatch/install.sh @@ -28,7 +28,7 @@ User=root Type=simple Restart=on-failure RestartSec=5s -ExecStart=-/usr/bin/sspatch.sh +ExecStart=/usr/bin/sspatch.sh [Install] WantedBy=multi-user.target diff --git a/updatenotify/install.sh b/updatenotify/install.sh index 328d037..b969c1b 100755 --- a/updatenotify/install.sh +++ b/updatenotify/install.sh @@ -23,7 +23,7 @@ if [ "${1}" = "late" ]; then echo "[Service]" >>${DEST} echo "Type=oneshot" >>${DEST} echo "RemainAfterExit=yes" >>${DEST} - echo "ExecStart=-/usr/bin/arc-updatenotify.sh create">>${DEST} + echo "ExecStart=/usr/bin/arc-updatenotify.sh create" >>${DEST} echo >>${DEST} echo "[Install]" >>${DEST} echo "WantedBy=multi-user.target" >>${DEST}