mirror of
https://github.com/fbelavenuto/arpl.git
synced 2026-01-06 01:02:07 +08:00
first commit
This commit is contained in:
12
addons/acpid/install.sh
Normal file
12
addons/acpid/install.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
if [ "${1}" = "sys" ]; then
|
||||
echo "Installing module and daemon for ACPI button"
|
||||
if [ ! -f /tmpRoot/lib/modules/button.ko ]; then
|
||||
cp /modules/button.ko /tmpRoot/lib/modules/
|
||||
fi
|
||||
tar -zxvf /addons/acpid.tgz -C /tmpRoot/
|
||||
chmod 755 /tmpRoot/usr/sbin/acpid
|
||||
chmod 644 /tmpRoot/etc/acpi/events/power
|
||||
chmod 744 /tmpRoot/etc/acpi/power.sh
|
||||
chmod 744 /tmpRoot/usr/lib/systemd/system/acpid.service
|
||||
ln -sf /usr/lib/systemd/system/acpid.service /tmpRoot/etc/systemd/system/multi-user.target.wants/acpid.service
|
||||
fi
|
||||
Reference in New Issue
Block a user