X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage2%2Fpkg%2Facpid;h=f9156b920306cf96ffd4228e54e086df9be4115b;hb=f17ab848cb756cad27489bf0c2746e5ead466658;hp=aff49604732bcd53074c654575d77c34d4f85c65;hpb=45772460c845b10a51eda6db02496c7967cda377;p=hvlinux.git diff --git a/stage2/pkg/acpid b/stage2/pkg/acpid index aff4960..f9156b9 100644 --- a/stage2/pkg/acpid +++ b/stage2/pkg/acpid @@ -2,19 +2,9 @@ hvbuild_post() { - install -d -m755 /etc/acpi/events + install -v -d -m755 /etc/acpi/events - cat > /etc/acpi/events/button-lid << EOF -# When the lid is closed, go into suspend to ram -event=button/lid -action=/etc/acpi/suspend2ram.sh -EOF - - cat > /etc/acpi/events/button-power << EOF -# When the power button is pressed, shutdown the system. -event=button/power -action=/etc/acpi/shutdown.sh -EOF + install -v -m644 ${SCRDIR}/misc/acpi/events/* /etc/acpi/events install -v -m755 ${SCRDIR}/misc/acpi/suspend2ram.sh /etc/acpi install -v -m755 ${SCRDIR}/misc/acpi/shutdown.sh /etc/acpi