#!/bin/bash # Start the scripts on boot # Datei: /etc/init.d/local.start if [ "`cat /proc/acpi/ac_adapter/ACAD/state|grep on-line`" ]; then netzbetrieb fi; if [ ! "`cat /proc/acpi/ac_adapter/ACAD/state|grep on-line`" ]; then batteriebetrieb fi;