Need an Introduction to Tiny Core? Or peruse Core Concepts.
http://wiki.tinycorelinux.net/wiki:using_acpid_to_control_your_pc_buttons