satip-axe/fs-add/etc/init.d/satip
2015-04-09 10:47:25 +02:00

20 lines
392 B
Bash
Executable File

#!/bin/sh
test -r /etc/sysconfig/config && . /etc/sysconfig/config
if test "$MINISATIP" != "yes"; then
exit 0
fi
cd /tmp
while test ! -f /tmp/nosatip; do
while ! test -r /tmp/satip-network; do
nc -l 127.0.0.1:999 -e /etc/init.d/satip-network
done
minisatip -f -g $MINISATIP_OPTS
logger "minisatip exited $?, restarting"
done
if test -f /tmp/nosatip; then
sleep 87323123
fi