#!/bin/sh echo -n "Setting modem sleep=2: " id=$(date +%s) TTY=$(dbus-send --system --print-reply --type=method_call --dest=org.pyneo.muxer /org/pyneo/Muxer org.freesmartphone.GSM.MUX.AllocChannel string:$id | grep string | cut -d \" -f 2) || (echo "CANNOT GET MODEM"; exit 1) ####logger -t nosleep "using tty $TTY" echo -n $TTY ##chat -f /etc/chatscripts/nosleep.chat < $TTY > $TTY chat TIMEOUT 5 "" AT OK AT OK AT%SLEEP=2 OK AT OK AT < $TTY > $TTY echo " done."