#!/bin/sh # # Installing acpi modul case "$1" in start) . /etc/init.d/rc.functions echo "Starting acpi" load_modules acpi "button,fan,processor,thermal" || failed acpid check_status ;; stop) . /etc/init.d/rc.functions echo "Stoping acpi" killproc "acpid" || failed unload_modules acpi check_status ;; restart) $0 stop $0 start ;; init) start=1 ;; *) echo "Usage $0 {start | stop | restart}" >&2 exit 1 esac