#! /bin/sh

# Umschalten des USR Message Modems in den Selfmode

case "$1" in
	start)
		echo "Switching USR-MM to selfmode."
		# Ohne dem "-i" funktionieren die nachfolgenden nicht
		( /usr/bin/strace -o /tmp/trace-smpctrl /opt/xsmp/bin/smpctrl -i > /dev/null ; \
		/opt/xsmp/bin/smpctrl -b 3 ; \
		/opt/xsmp/bin/smpctrl -v off ; \
		/opt/xsmp/bin/smpctrl -S ) &
		sleep 25;
		;;
	stop)
# Wird nie aufgerufen.
#		echo "Switching off USR-MM selfmode."
		;;
	*)
		echo "Usage: $0 {start|stop}"
		exit 1
esac

exit 0
