Makefile: versioning, add minisatip icons, uboot script generator
This commit is contained in:
@@ -17,3 +17,9 @@ TELNETD="yes"
|
||||
# dropbear
|
||||
#
|
||||
DROPBEAR="yes"
|
||||
|
||||
#
|
||||
# minisatip
|
||||
#
|
||||
MINISATIP="yes"
|
||||
MINISATIP_OPTS=""
|
||||
|
@@ -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
|
||||
|
@@ -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
13
fs-add/etc/init.d/satip
Executable 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
|
@@ -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
|
||||
|
@@ -1,2 +1,2 @@
|
||||
|
||||
Welcome to SATIP-AXE server
|
||||
Welcome to SATIP-AXE server @VERSION@
|
5
fs-add/init
Executable file
5
fs-add/init
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/busybox sh
|
||||
|
||||
export TZ=":/etc/localtime"
|
||||
|
||||
exec /bin/busybox init
|
Reference in New Issue
Block a user