mirror of
https://github.com/AuxXxilium/arc-addons.git
synced 2024-11-23 21:50:52 +07:00
tree: revert more changes
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
f929909886
commit
0500b9c6cb
@ -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/usr/ ./bin ./sbin ./lib
|
||||||
tar -zxf /addons/acpid-7.1.tgz -C /tmpRoot/ ./etc
|
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
|
if [ -f /usr/lib/modules/button.ko ]; then
|
||||||
cp -vf /usr/lib/modules/button.ko /tmpRoot/usr/lib/modules/button.ko
|
cp -vf /usr/lib/modules/button.ko /tmpRoot/usr/lib/modules/button.ko
|
||||||
else
|
else
|
||||||
@ -33,9 +33,9 @@ if [ "${1}" = "late" ]; then
|
|||||||
# echo "Restart=always" >>${DEST}
|
# echo "Restart=always" >>${DEST}
|
||||||
# echo "RestartSec=30" >>${DEST}
|
# echo "RestartSec=30" >>${DEST}
|
||||||
# echo "PIDFile=/var/run/acpid.pid" >>${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 "ExecStart=/usr/sbin/acpid" >>${DEST}
|
||||||
# echo "ExecStopPost=-/usr/sbin/modprobe -r button" >>${DEST}
|
# echo "ExecStopPost=/usr/sbin/modprobe -r button" >>${DEST}
|
||||||
# echo >>${DEST}
|
# echo >>${DEST}
|
||||||
# echo "[X-Synology]" >>${DEST}
|
# echo "[X-Synology]" >>${DEST}
|
||||||
# echo "Author=Virtualization Team" >>${DEST}
|
# echo "Author=Virtualization Team" >>${DEST}
|
||||||
|
@ -59,7 +59,7 @@ elif [ "${1}" = "late" ]; then
|
|||||||
echo -e "DSM mode\n" >/tmpRoot/etc/issue
|
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
|
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
|
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
|
ln -vsf /usr/lib/systemd/system/getty\@tty1.service /tmpRoot/usr/lib/systemd/system/getty.target.wants/getty\@tty1.service
|
||||||
|
|
||||||
|
@ -215,7 +215,7 @@ elif [ "${1}" = "late" ]; then
|
|||||||
|
|
||||||
# service
|
# service
|
||||||
SERVICE_PATH="/tmpRoot/usr/lib/systemd/system"
|
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
|
# getty
|
||||||
for I in $(cat /proc/cmdline 2>/dev/null | grep -oE 'getty=[^ ]+' | sed 's/getty=//'); do
|
for I in $(cat /proc/cmdline 2>/dev/null | grep -oE 'getty=[^ ]+' | sed 's/getty=//'); do
|
||||||
TTYN="$(echo "${I}" | cut -d',' -f1)"
|
TTYN="$(echo "${I}" | cut -d',' -f1)"
|
||||||
@ -226,7 +226,7 @@ elif [ "${1}" = "late" ]; then
|
|||||||
if [ -n "${TTYN}" ] && [ -e "/dev/${TTYN}" ]; then
|
if [ -n "${TTYN}" ] && [ -e "/dev/${TTYN}" ]; then
|
||||||
echo "Make getty\@${TTYN}.service"
|
echo "Make getty\@${TTYN}.service"
|
||||||
cp -fv /tmpRoot/usr/lib/systemd/system/serial-getty\@.service /tmpRoot/usr/lib/systemd/system/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
|
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
|
ln -vsf /usr/lib/systemd/system/getty\@${TTYN}.service /tmpRoot/usr/lib/systemd/system/getty.target.wants/getty\@${TTYN}.service
|
||||||
fi
|
fi
|
||||||
|
@ -31,7 +31,7 @@ if [ "${1}" = "late" ]; then
|
|||||||
echo "[Service]" >>${DEST}
|
echo "[Service]" >>${DEST}
|
||||||
echo "Type=oneshot" >>${DEST}
|
echo "Type=oneshot" >>${DEST}
|
||||||
echo "RemainAfterExit=yes" >>${DEST}
|
echo "RemainAfterExit=yes" >>${DEST}
|
||||||
echo "ExecStart=-/usr/arc/revert.sh" >>${DEST}
|
echo "ExecStart=/usr/arc/revert.sh" >>${DEST}
|
||||||
echo >>${DEST}
|
echo >>${DEST}
|
||||||
echo "[Install]" >>${DEST}
|
echo "[Install]" >>${DEST}
|
||||||
echo "WantedBy=multi-user.target" >>${DEST}
|
echo "WantedBy=multi-user.target" >>${DEST}
|
||||||
|
@ -28,7 +28,7 @@ User=root
|
|||||||
Type=simple
|
Type=simple
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=5s
|
RestartSec=5s
|
||||||
ExecStart=-/usr/bin/sspatch.sh
|
ExecStart=/usr/bin/sspatch.sh
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -23,7 +23,7 @@ if [ "${1}" = "late" ]; then
|
|||||||
echo "[Service]" >>${DEST}
|
echo "[Service]" >>${DEST}
|
||||||
echo "Type=oneshot" >>${DEST}
|
echo "Type=oneshot" >>${DEST}
|
||||||
echo "RemainAfterExit=yes" >>${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 >>${DEST}
|
||||||
echo "[Install]" >>${DEST}
|
echo "[Install]" >>${DEST}
|
||||||
echo "WantedBy=multi-user.target" >>${DEST}
|
echo "WantedBy=multi-user.target" >>${DEST}
|
||||||
|
Loading…
Reference in New Issue
Block a user