#!/bin/sh
PATH=/usr/sbin:/usr/bin:/sbin:/bin
PID=1000
IP=10
MAC=00:0
NAME=`basename $0`
case "$1" in
start)
echo "starting $NAME..."
/sbin/sysctl -w net.ipv4.conf.all.rp_filter="0"
/sbin/sysctl -w net.ipv4.conf.default.rp_filter="0"
szap-s2 -l 10750 -a 1 -c /etc/channels.conf -n 3 > /dev/null &
dvbnet -a 1 -p $PID
ifconfig dvb1_0 hw ether $MAC
ifconfig dvb1_0 $IP
slonax_3g
;;
stop)
echo "stoping $NAME..."
ifconfig dvb1_0 down
dvbnet -d 1
killall szap-s2
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: `basename $0` start | stop | restart"
;;
esac