#!/bin/sh
#

case "$1" in
	start)
		/root/gfa_spi -o 0x40025040 0x00000010
		/bin/sleep 4
		/root/gfa_spi -o 0x40025040 0x00000000
		/bin/sleep 1
		/root/gfa_spi -o 0x40027200 0x00000080
		/bin/sleep 2
		/root/gfa_spi -o 0x40027200 0x00000000
		/bin/sleep 5	
		/var/GfA/gsmMuxd_Ser -p /dev/ttyO1 -m mc35 -B 460800 -b 115200 -r -w -s /dev/mux /dev/ptmx /dev/ptmx /dev/ptmx
		;;
	stop)
		killall gsmMuxd_Ser
		sleep 3
		;;

	status)
		ps -e | grep gsmMuxd_Ser
		;;
	*)
		echo "Usage: $0 {start|stop|status}"
		exit 1
		;;
esac
exit 0
