#!/bin/sh # # /etc/init.d/boot.thinkpad_acpi # # Inserts the thinkpad ACPI module into the kernel # # This will call modprobe to insert the thinkpad.ko module into # the kernel. Then, udev should create the /dev/thinkpad/thinkpad # device which user space programs can use to trigger ACPI events # like suspending and hibernating a laptop. # ### BEGIN INIT INFO # Provides: thinkpad_acpi # Required-Start: # Required-Stop: # Default-Start: 5 # Default-Stop: # Description: Inserts the thinkpad ACPI kernel module ### END INIT INFO . /etc/rc.status rc_reset case $1 in start|b) rc_status modprobe thinkpad echo "Inserted Thinkpad ACPI kernel module" rc_status -v1 ;; stop) # skip / do nothing ;; status) lsmod | grep thinkpad rc_status -v1 ;; *) echo "usage: thinkpad_acpi {start|stop|status}" ;; esac rc_exit