Makefile: versioning, add minisatip icons, uboot script generator

This commit is contained in:
Jaroslav Kysela
2015-03-31 16:39:17 +02:00
parent bbeda3d499
commit 3aa2d34426
11 changed files with 108 additions and 16 deletions

View File

@@ -17,3 +17,9 @@ TELNETD="yes"
# dropbear
#
DROPBEAR="yes"
#
# minisatip
#
MINISATIP="yes"
MINISATIP_OPTS=""

View File

@@ -6,6 +6,8 @@ if test "$DROPBEAR" != "yes"; then
exit 0
fi
sleep 5
if ! test -r /etc/dropbear/dropbear_dss_host_key; then
mkdir -p /etc/dropbear
if test -r /etc/sysconfig/dropbear_dss_host_key; then

View File

@@ -33,9 +33,17 @@ ln -s /mnt/data/satip-axe/sysconfig /etc/sysconfig
if ! test -r /etc/sysconfig/config ; then
cp /etc/config.default /etc/sysconfig/config
fi
if test -r /etc/sysconfig/passwd ; then
cp /etc/sysconfig/passwd /etc/passwd
fi
# basic network
hostname satip-axe
ifconfig lo 127.0.0.1 netmask 255.255.255.0
ifconfig eth0 up
route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0
# local boot
if test -x /etc/sysconfig/localboot ; then
/etc/sysconfig/localboot
fi

13
fs-add/etc/init.d/satip Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
test -r /etc/sysconfig/config && . /etc/sysconfig/config
if test "$MINISATIP" != "yes"; then
exit 0
fi
cd /tmp
while test 1 -eq 1; do
minisatip -f -g $MINISATIP_OPTS
logger "minisatip exited $?, restarting"
done

View File

@@ -2,8 +2,10 @@
test -r /etc/sysconfig/config && . /etc/sysconfig/config
if test "$DROPBEAR" != "yes"; then
if test "$TELNETD" != "yes"; then
exit 0
fi
sleep 5
exec /usr/sbin/telnetd -F -l /bin/login

View File

@@ -1,2 +1,2 @@
Welcome to SATIP-AXE server
Welcome to SATIP-AXE server @VERSION@