mirror of
https://github.com/AuxXxilium/arc-addons.git
synced 2024-11-23 21:50:52 +07:00
acpid: rework
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
e70604f23d
commit
e2f0aeaed2
@ -12,12 +12,11 @@ if [ "${1}" = "late" ]; then
|
||||
cp -vf "${0}" "/tmpRoot/usr/arc/addons/"
|
||||
|
||||
mkdir -p /tmpRoot/etc/acpi/events/
|
||||
# [ ! -f /tmpRoot/etc/acpi/events/power.bak -a -f /tmpRoot/etc/acpi/events/power ] && cp -vf /tmpRoot/etc/acpi/events/power /tmpRoot/etc/acpi/events/power.bak
|
||||
# [ ! -f /tmpRoot/etc/acpi/power.sh.bak -a -f /tmpRoot/etc/acpi/power.sh ] && cp -vf /tmpRoot/etc/acpi/power.sh /tmpRoot/etc/acpi/power.sh.bak
|
||||
# [ ! -f /tmpRoot/usr/sbin/acpid.bak -a -f /tmpRoot/usr/sbin/acpid ] && cp -vf /tmpRoot/usr/sbin/acpid /tmpRoot/usr/sbin/acpid.bak
|
||||
cp -vf /etc/acpi/events/power /tmpRoot/etc/acpi/events/power
|
||||
cp -vf /etc/acpi/power.sh /tmpRoot/etc/acpi/power.sh
|
||||
cp -vf /usr/bin/acpi_listen /tmpRoot/usr/bin/acpi_listen
|
||||
cp -vf /usr/sbin/acpid /tmpRoot/usr/sbin/acpid
|
||||
cp -vf /usr/sbin/kacpimon /tmpRoot/usr/sbin/kacpimon
|
||||
if [ -f /usr/lib/modules/button.ko ]; then
|
||||
cp -vf /usr/lib/modules/button.ko /tmpRoot/usr/lib/modules/button.ko
|
||||
else
|
||||
@ -53,8 +52,7 @@ elif [ "${1}" = "uninstall" ]; then
|
||||
|
||||
rm -f /tmpRoot/etc/acpi/events/power
|
||||
rm -f /tmpRoot/etc/acpi/power.sh
|
||||
rm -f /tmpRoot/usr/bin/acpi_listen
|
||||
rm -f /tmpRoot/usr/sbin/acpid
|
||||
# [ -f /tmpRoot/etc/acpi/events/power.bak ] && mv -vf /tmpRoot/etc/acpi/events/power.bak /tmpRoot/etc/acpi/events/power
|
||||
# [ -f /tmpRoot/etc/acpi/power.sh.bak ] && mv -vf /tmpRoot/etc/acpi/power.sh.bak /tmpRoot/etc/acpi/power.sh
|
||||
# [ -f /tmpRoot/usr/sbin/acpid.bak ] && mv -vf /tmpRoot/usr/sbin/acpid.bak /tmpRoot/usr/sbin/acpid
|
||||
rm -f /tmpRoot/usr/sbin/kacpimon
|
||||
fi
|
Loading…
Reference in New Issue
Block a user