mirror of
https://github.com/AuxXxilium/arc-addons.git
synced 2024-11-23 21:50:52 +07:00
eudev: fix install
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
6beef76caf
commit
f929909886
@ -92,17 +92,22 @@ elif [ "${1}" = "late" ]; then
|
||||
|
||||
mkdir -p "/tmpRoot/usr/lib/systemd/system"
|
||||
DEST="/tmpRoot/usr/lib/systemd/system/udevrules.service"
|
||||
echo "[Unit]" >${DEST}
|
||||
echo "Description=Reload udev rules" >>${DEST}
|
||||
echo >>${DEST}
|
||||
echo "[Service]" >>${DEST}
|
||||
echo "Type=oneshot" >>${DEST}
|
||||
echo "RemainAfterExit=yes" >>${DEST}
|
||||
echo "ExecStart=/usr/bin/udevadm hwdb --update" >>${DEST}
|
||||
echo "ExecStart=/usr/bin/udevadm control --reload-rules" >>${DEST}
|
||||
echo >>${DEST}
|
||||
echo "[Install]" >>${DEST}
|
||||
echo "WantedBy=multi-user.target" >>${DEST}
|
||||
cat << EOF > ${DEST}
|
||||
[Unit]
|
||||
Description=Reload udev rules
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/bin/udevadm hwdb --update
|
||||
ExecStart=/usr/bin/udevadm control --reload-rules
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
[X-Synology]
|
||||
Author=Virtualization Team
|
||||
EOF
|
||||
|
||||
mkdir -vp /tmpRoot/usr/lib/systemd/system/multi-user.target.wants
|
||||
ln -vsf /usr/lib/systemd/system/udevrules.service /tmpRoot/usr/lib/systemd/system/multi-user.target.wants/udevrules.service
|
||||
|
Loading…
Reference in New Issue
Block a user