rcS: unpack and run extra services from the data mtd partition
This commit is contained in:
parent
2a3e6b7add
commit
0825c29009
2
Makefile
2
Makefile
@ -91,7 +91,7 @@ endef
|
|||||||
|
|
||||||
define PACKAGE
|
define PACKAGE
|
||||||
-mkdir -p out/packages
|
-mkdir -p out/packages
|
||||||
tar cvj -C $(1) -f out/packages/$(2).tar.bz2 $(3)
|
tar cvz -C $(1) -f out/packages/$(2).tar.gz $(3)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -2,10 +2,6 @@
|
|||||||
|
|
||||||
test -r /etc/sysconfig/config && . /etc/sysconfig/config
|
test -r /etc/sysconfig/config && . /etc/sysconfig/config
|
||||||
|
|
||||||
if test "$CUSTOMD" != "yes"; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test -x "${CUSTOMD}" ; then
|
if test -x "${CUSTOMD}" ; then
|
||||||
. "${CUSTOMD}"
|
. "${CUSTOMD}"
|
||||||
fi
|
fi
|
||||||
|
@ -145,6 +145,35 @@ fi
|
|||||||
ifconfig eth0 txqueuelen 2000 up
|
ifconfig eth0 txqueuelen 2000 up
|
||||||
route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0
|
route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0
|
||||||
|
|
||||||
|
# unpack extra packages
|
||||||
|
for package in /mnt/data/satip-axe/packages/*.tar.gz; do
|
||||||
|
if test -r "$package"; then
|
||||||
|
logger -p local0.notice "Unpacking package $package"
|
||||||
|
tar xz -C / -f "$package"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
for package in /mnt/data/satip-axe/packages/*.tar.bz2; do
|
||||||
|
if test -r "$package"; then
|
||||||
|
logger -p local0.notice "Unpacking package $package"
|
||||||
|
tar xj -C / -f "$package"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# run extra services
|
||||||
|
inithup=
|
||||||
|
for prg in /etc/init.extra/*; do
|
||||||
|
if test -x "$prg"; then
|
||||||
|
if test -z "$inithup"; then
|
||||||
|
echo "# Added by /etc/init.d/rcS - init.extra" >> /etc/inittab
|
||||||
|
fi
|
||||||
|
echo "::respawn:${prg}" >> /etc/inittab
|
||||||
|
inithup=1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if test -n "$inithup"; then
|
||||||
|
kill -SIGHUP 1
|
||||||
|
fi
|
||||||
|
|
||||||
# local boot
|
# local boot
|
||||||
if test -x /etc/sysconfig/localboot ; then
|
if test -x /etc/sysconfig/localboot ; then
|
||||||
/etc/sysconfig/localboot
|
/etc/sysconfig/localboot
|
||||||
|
Loading…
Reference in New Issue
Block a user