#!/bin/sh
# Stoppt isdn System
PATH="/bin"
CTRL=/usr/sbin/isdnctrl
LOGGER=/usr/bin/logger
test -f /var/start/force-online &&
{
$LOGGER -p local3.debug "Online wird aufgezwungen"
exit 1
}
test -f /var/start/offline &&
{
$LOGGER -p local3.debug "System ist bereits off"
exit 1
}
$LOGGER -p local3.info "System off"
touch /var/start/offline
/usr/bin/sudo /etc/init.d/isdnutils stop &> /dev/null
exit 0