vanhofen
4 years ago
14 changed files with 26 additions and 1044 deletions
@ -1,29 +0,0 @@ |
|||
# |
|||
# Defaults for the boot scripts in /etc/rcS.d |
|||
# |
|||
|
|||
# Time files in /tmp are kept in days. |
|||
TMPTIME=0 |
|||
# Set to yes if you want sulogin to be spawned on bootup |
|||
SULOGIN=no |
|||
# Set to no if you want to be able to login over telnet/rlogin |
|||
# before system startup is complete (as soon as inetd is started) |
|||
DELAYLOGIN=no |
|||
# Assume that the BIOS clock is set to UTC time (recommended) |
|||
UTC=yes |
|||
# Set VERBOSE to "no" if you would like a more quiet bootup. |
|||
VERBOSE=no |
|||
# Set EDITMOTD to "no" if you don't want /etc/motd to be edited automatically |
|||
EDITMOTD=no |
|||
# Whether to fsck root on boot |
|||
ENABLE_ROOTFS_FSCK=no |
|||
# Set FSCKFIX to "yes" if you want to add "-y" to the fsck at startup. |
|||
FSCKFIX=yes |
|||
# Set TICKADJ to the correct tick value for this specific machine |
|||
#TICKADJ=10000 |
|||
# Enable caching in populate-volatile.sh |
|||
VOLATILE_ENABLE_CACHE=yes |
|||
# Indicate whether the rootfs is intended to be read-only or not. |
|||
# Setting ROOTFS_READ_ONLY to yes and rebooting will give you a read-only rootfs. |
|||
# Normally you should not change this value. |
|||
ROOTFS_READ_ONLY=no |
@ -1,185 +0,0 @@ |
|||
#!/bin/sh |
|||
# |
|||
# rc This file is responsible for starting/stopping |
|||
# services when the runlevel changes. |
|||
# |
|||
# Optimization feature: |
|||
# A startup script is _not_ run when the service was |
|||
# running in the previous runlevel and it wasn't stopped |
|||
# in the runlevel transition (most Debian services don't |
|||
# have K?? links in rc{1,2,3,4,5} ) |
|||
# |
|||
# Author: Miquel van Smoorenburg <miquels@cistron.nl> |
|||
# Bruce Perens <Bruce@Pixar.com> |
|||
# |
|||
# Version: @(#)rc 2.78 07-Nov-1999 miquels@cistron.nl |
|||
# |
|||
|
|||
. /etc/default/rcS |
|||
export VERBOSE |
|||
|
|||
. /etc/init.d/functions |
|||
. /etc/init.d/globals |
|||
|
|||
startup_progress() { |
|||
step=$(($step + $step_change)) |
|||
if [ "$num_steps" != "0" ]; then |
|||
progress=$((($step * $progress_size / $num_steps) + $first_step)) |
|||
else |
|||
progress=$progress_size |
|||
fi |
|||
#echo "PROGRESS is $progress $runlevel $first_step + ($step of $num_steps) $step_change $progress_size" |
|||
#if type psplash-write >/dev/null 2>&1; then |
|||
# TMPDIR=/mnt/.psplash psplash-write "PROGRESS $progress" || true |
|||
#fi |
|||
if [ $progress -gt 0 -a -e /proc/progress ]; then |
|||
echo $(($progress / 2)) > /proc/progress |
|||
elif [ $progress -gt 0 -a -e /proc/vfd ]; then |
|||
echo Loading $(($progress / 2)) % > /proc/vfd |
|||
elif [ $progress -gt 0 -a -e /usr/bin/displayvfd ]; then |
|||
displayvfd -s 18 -t "Booting $progress" |
|||
elif [ $progress -gt 0 -a -e /dev/mcu ]; then |
|||
echo $(($progress / 2)) > /dev/mcu |
|||
fi |
|||
} |
|||
|
|||
|
|||
# |
|||
# Start script or program. |
|||
# |
|||
startup() { |
|||
# Handle verbosity |
|||
[ "$VERBOSE" = very ] && echo "INIT: Running $@..." |
|||
LOGINFO "running $@" |
|||
|
|||
case "$1" in |
|||
*.sh) |
|||
# Source shell script for speed. |
|||
( |
|||
trap - INT QUIT TSTP |
|||
scriptname=$1 |
|||
shift |
|||
. $scriptname |
|||
) |
|||
;; |
|||
*) |
|||
"$@" |
|||
;; |
|||
esac |
|||
startup_progress |
|||
} |
|||
|
|||
# Ignore CTRL-C only in this shell, so we can interrupt subprocesses. |
|||
trap ":" INT QUIT TSTP |
|||
|
|||
# Set onlcr to avoid staircase effect. |
|||
stty onlcr 0>&1 |
|||
|
|||
# Limit stack size for startup scripts |
|||
[ "$STACK_SIZE" == "" ] || ulimit -S -s $STACK_SIZE |
|||
|
|||
# Now find out what the current and what the previous runlevel are. |
|||
|
|||
runlevel=$RUNLEVEL |
|||
# Get first argument. Set new runlevel to this argument. |
|||
[ "$1" != "" ] && runlevel=$1 |
|||
if [ "$runlevel" = "" ] |
|||
then |
|||
echo "Usage: $0 <runlevel>" >&2 |
|||
exit 1 |
|||
fi |
|||
previous=$PREVLEVEL |
|||
[ "$previous" = "" ] && previous=N |
|||
|
|||
export runlevel previous |
|||
|
|||
# Is there an rc directory for this new runlevel? |
|||
if [ -d /etc/rc$runlevel.d ] |
|||
then |
|||
# Find out where in the progress bar the initramfs got to. |
|||
PROGRESS_STATE=0 |
|||
#if [ -f /dev/.initramfs/progress_state ]; then |
|||
# . /dev/.initramfs/progress_state |
|||
#fi |
|||
|
|||
# Split the remaining portion of the progress bar into thirds |
|||
progress_size=$(((100 - $PROGRESS_STATE) / 3)) |
|||
|
|||
case "$runlevel" in |
|||
0|6) |
|||
# Count down from -100 to 0 and use the entire bar |
|||
first_step=-100 |
|||
progress_size=100 |
|||
step_change=1 |
|||
;; |
|||
S) |
|||
# Begin where the initramfs left off and use 2/3 |
|||
# of the remaining space |
|||
first_step=$PROGRESS_STATE |
|||
progress_size=$(($progress_size * 2)) |
|||
step_change=1 |
|||
;; |
|||
*) |
|||
# Begin where rcS left off and use the final 1/3 of |
|||
# the space (by leaving progress_size unchanged) |
|||
first_step=$(($progress_size * 2 + $PROGRESS_STATE)) |
|||
step_change=1 |
|||
;; |
|||
esac |
|||
|
|||
num_steps=0 |
|||
for s in /etc/rc$runlevel.d/[SK]*; do |
|||
case "${s##/etc/rc$runlevel.d/S??}" in |
|||
gdm|xdm|kdm|reboot|halt) |
|||
break |
|||
;; |
|||
esac |
|||
num_steps=$(($num_steps + 1)) |
|||
done |
|||
step=0 |
|||
|
|||
# First, run the KILL scripts. |
|||
if [ $previous != N ] |
|||
then |
|||
for i in /etc/rc$runlevel.d/K[0-9][0-9]* |
|||
do |
|||
# Check if the script is there. |
|||
[ ! -f $i ] && continue |
|||
|
|||
# Stop the service. |
|||
startup $i stop |
|||
done |
|||
fi |
|||
|
|||
# Now run the START scripts for this runlevel. |
|||
for i in /etc/rc$runlevel.d/S* |
|||
do |
|||
[ ! -f $i ] && continue |
|||
|
|||
if [ $previous != N ] && [ $previous != S ] |
|||
then |
|||
# |
|||
# Find start script in previous runlevel and |
|||
# stop script in this runlevel. |
|||
# |
|||
suffix=${i#/etc/rc$runlevel.d/S[0-9][0-9]} |
|||
stop=/etc/rc$runlevel.d/K[0-9][0-9]$suffix |
|||
previous_start=/etc/rc$previous.d/S[0-9][0-9]$suffix |
|||
# |
|||
# If there is a start script in the previous level |
|||
# and _no_ stop script in this level, we don't |
|||
# have to re-start the service. |
|||
# |
|||
[ -f $previous_start ] && [ ! -f $stop ] && continue |
|||
fi |
|||
case "$runlevel" in |
|||
0|6) |
|||
# Runlevels 0 and 6 are always stop runlevels |
|||
startup $i stop |
|||
;; |
|||
*) |
|||
startup $i start |
|||
;; |
|||
esac |
|||
done |
|||
fi |
@ -1,21 +0,0 @@ |
|||
#!/bin/sh |
|||
|
|||
. /etc/profile |
|||
. /etc/init.d/functions |
|||
. /etc/init.d/globals |
|||
|
|||
SHOWINFO "start" |
|||
|
|||
if [ -e /tmp/.flash.start ]; then |
|||
lcd4l_cmd=stop |
|||
lcd4l_msg="Updating STB ..." |
|||
else |
|||
lcd4l_cmd=off |
|||
lcd4l_msg="Shutdown STB ..." |
|||
fi |
|||
|
|||
# first stopping lcd4linux |
|||
test -d /tmp/lcd/ && echo ${lcd4l_msg} > /tmp/lcd/goodbye |
|||
service lcd4linux ${lcd4l_cmd} |
|||
|
|||
SHOWINFO "done" |
@ -1,161 +0,0 @@ |
|||
#!/bin/sh |
|||
|
|||
runlevel=S |
|||
prevlevel=N |
|||
umask 022 |
|||
export runlevel prevlevel |
|||
|
|||
# source defaults |
|||
. /etc/default/rcS |
|||
|
|||
. /etc/profile |
|||
. /etc/init.d/functions |
|||
. /etc/init.d/globals |
|||
|
|||
SHOWINFO "start" |
|||
|
|||
# init system |
|||
SHOWINFO "creating and mounting system directories ..." |
|||
mount -t proc proc /proc |
|||
mount -t sysfs sys /sys |
|||
mount -t tmpfs tmp /tmp |
|||
mount -t tmpfs media /media |
|||
mount -t tmpfs srv /srv |
|||
mount -t tmpfs mnt /mnt |
|||
for dir in autofs epg logos logos/events movies music pictures plugins; do |
|||
mkdir -p /mnt/${dir} |
|||
done |
|||
mkdir -p /dev/pts |
|||
mount -t devpts devpts /dev/pts |
|||
mkdir -p /dev/shm/usb |
|||
mount -t usbfs none /proc/bus/usb |
|||
|
|||
# for nfsd |
|||
mkdir -p /var/lib/nfs |
|||
mount -t tmpfs nfs /var/lib/nfs |
|||
|
|||
# for samba |
|||
mkdir -p /var/samba |
|||
mount -t tmpfs samba /var/samba |
|||
|
|||
# for wget |
|||
mkdir -p /var/run/wget |
|||
|
|||
# for wireless drivers |
|||
mkdir -p /var/run/wpa_supplicant |
|||
|
|||
# set level of messages printed to console |
|||
dmesg -n 1 |
|||
|
|||
# set dummy date |
|||
test -e /etc/date-dummy && date -s "$(cat /etc/date-dummy)" |
|||
|
|||
# create nodes |
|||
# <name> <type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count> |
|||
makedevs /dev << EONODES |
|||
watchdog c 644 0 0 10 130 |
|||
cnxt d 755 0 0 |
|||
cnxt/cnxt_gen_drv c 644 0 0 102 0 |
|||
notifyq c 644 0 0 102 1 |
|||
user_kal c 644 0 0 102 2 |
|||
display c 644 0 0 238 0 |
|||
cs_control c 644 0 0 249 0 |
|||
input d 755 0 0 |
|||
input/nevis_ir c 644 0 0 240 0 |
|||
input/event0_uinput c 644 0 0 10 223 |
|||
input/mouse c 644 0 0 13 32 0 1 4 |
|||
input/event2 c 644 0 0 13 66 |
|||
input/event3 c 644 0 0 13 67 |
|||
EONODES |
|||
|
|||
ln -sf nevis_ir /dev/input/event0 |
|||
ln -sf nevis_ir /dev/input/input0 |
|||
|
|||
# set hostname |
|||
service hostname start |
|||
|
|||
# logging as much as possible |
|||
service syslogd start |
|||
|
|||
LOGINFO "init frontpanel ..." |
|||
insmod cs_frontpanel.ko |
|||
|
|||
# update kernel |
|||
if [ -x /etc/init.d/stb_update.sh ]; then |
|||
/etc/init.d/stb_update.sh |
|||
fi |
|||
|
|||
# update system |
|||
if [ -x /etc/init.d/sys_update.sh ]; then |
|||
/etc/init.d/sys_update.sh |
|||
fi |
|||
|
|||
# mdev coldplug for node permissions |
|||
service mdev start |
|||
|
|||
# initialize hardware |
|||
LOGINFO "init hardware ..." |
|||
dt -t"INIT HARDWARE" |
|||
insmod cnxt_kal.ko |
|||
insmod cnxt_base.ko init=1 |
|||
|
|||
if [ -e /var/etc/.scart_osd_fix ]; then |
|||
insmod cnxt_fb.ko cnxtfb_standalone=1 cnxtfb_width=720 cnxtfb_height=576 #PAL |
|||
elif [ -e /var/etc/.scart_osd_fix_wide ]; then |
|||
insmod cnxt_fb.ko cnxtfb_standalone=1 cnxtfb_width=1024 cnxtfb_height=576 #PAL widescreen |
|||
else |
|||
insmod cnxt_fb.ko cnxtfb_standalone=1 cnxtfb_width=1280 cnxtfb_height=720 #HDTV |
|||
fi |
|||
|
|||
insmod cnxt_lnx.ko |
|||
insmod cnxt_alsa.ko |
|||
|
|||
if [ -e /var/etc/.hddpower ]; then |
|||
insmod cs_control.ko hdd_power=1 |
|||
else |
|||
insmod cs_control.ko |
|||
fi |
|||
|
|||
insmod cnxt_i2c.ko |
|||
insmod cnxt_sata_drv.ko |
|||
|
|||
LOGINFO "init drivers ..." |
|||
dt -t"INIT DRIVERS" |
|||
|
|||
insmod 8712u.ko |
|||
insmod 8192cu.ko |
|||
insmod rt2870sta.ko |
|||
|
|||
# fire up network/wlan |
|||
service networking start |
|||
service ntpdate start |
|||
|
|||
# load rest of modules |
|||
insmod cifs.ko |
|||
insmod fuse.ko |
|||
insmod usbserial.ko |
|||
insmod ftdi_sio.ko |
|||
insmod tun.ko |
|||
insmod pl2303.ko |
|||
insmod stv6110.ko verbose=0 |
|||
insmod stv090x.ko verbose=0 |
|||
insmod tda10023.ko |
|||
insmod avl2108.ko |
|||
insmod max2112.ko |
|||
insmod cs_frontend_prop.ko |
|||
insmod dvb-core.ko |
|||
insmod cs_frontend.ko |
|||
|
|||
# say hi to everyone |
|||
dt -ls01 |
|||
dt -ls02 |
|||
dt -c |
|||
dt -t"BOOT NI-IMAGE" |
|||
|
|||
# trap CTRL-C only in this shell so we can interrupt subprocesses |
|||
trap ":" INT QUIT TSTP |
|||
|
|||
# call all parts in order |
|||
exec /etc/init.d/rc S |
|||
|
|||
SHOWINFO "done" |
@ -1,163 +0,0 @@ |
|||
#!/bin/sh |
|||
|
|||
runlevel=S |
|||
prevlevel=N |
|||
umask 022 |
|||
export runlevel prevlevel |
|||
|
|||
# source defaults |
|||
. /etc/default/rcS |
|||
|
|||
. /etc/profile |
|||
. /etc/init.d/functions |
|||
. /etc/init.d/globals |
|||
|
|||
SHOWINFO "start" |
|||
|
|||
mount -t proc proc /proc |
|||
|
|||
# update kernel |
|||
if [ -x /etc/init.d/stb_update.sh ]; then |
|||
/etc/init.d/stb_update.sh |
|||
fi |
|||
|
|||
# init system |
|||
SHOWINFO "creating and mounting system directories ..." |
|||
mount -t sysfs sys /sys |
|||
mount -t tmpfs tmp /tmp |
|||
mount -t tmpfs media /media |
|||
mount -t tmpfs srv /srv |
|||
mount -t tmpfs mnt /mnt |
|||
for dir in autofs epg logos logos/events movies music pictures plugins; do |
|||
mkdir -p /mnt/${dir} |
|||
done |
|||
mkdir -p /dev/pts |
|||
mount -t devpts devpts /dev/pts |
|||
mkdir -p /dev/shm/usb |
|||
|
|||
# mount var-partition |
|||
/etc/init.d/var_mount.sh |
|||
|
|||
# for nfsd |
|||
mkdir -p /var/lib/nfs |
|||
mount -t tmpfs nfs /var/lib/nfs |
|||
|
|||
# for samba |
|||
mkdir -p /var/samba |
|||
mount -t tmpfs samba /var/samba |
|||
|
|||
# for wget |
|||
mkdir -p /var/run/wget |
|||
|
|||
# for wireless drivers |
|||
mkdir -p /var/run/wpa_supplicant |
|||
|
|||
# set level of messages printed to console |
|||
dmesg -n 1 |
|||
|
|||
# set dummy date |
|||
test -e /etc/date-dummy && date -s "$(cat /etc/date-dummy)" |
|||
|
|||
# automatic restore |
|||
if [ -e /var/backup_flash.tar.gz ]; then |
|||
/usr/bin/restore_flash.sh |
|||
fi |
|||
|
|||
# update system |
|||
if [ -x /etc/init.d/sys_update.sh ]; then |
|||
/etc/init.d/sys_update.sh |
|||
fi |
|||
|
|||
# update var-partition |
|||
if [ -x /etc/init.d/var_update.sh ]; then |
|||
/etc/init.d/var_update.sh |
|||
fi |
|||
|
|||
# set hostname |
|||
service hostname start |
|||
|
|||
# logging as much as possible |
|||
service syslogd start |
|||
|
|||
# mdev coldplug for node permissions |
|||
service mdev start |
|||
|
|||
# load modules / create nodes |
|||
load_module extra/lnxplatnativeDrv.ko |
|||
load_module extra/lnxKKALDrv.ko |
|||
load_module extra/lnxnotifyqDrv.ko |
|||
load_module extra/lnxplatDrv.ko |
|||
load_module extra/lnxplatSAR.ko |
|||
load_module extra/lnxscsDrv.ko |
|||
load_module extra/lnxfssDrv.ko |
|||
load_module extra/lnxcssDrv.ko |
|||
load_module extra/lnxtmasDrv.ko |
|||
load_module extra/lnxtmvssDrvGPL.ko |
|||
load_module extra/lnxtmvssDrv.ko |
|||
load_module extra/lnxpvrDrv.ko |
|||
load_module extra/lnxdvbciDrv.ko |
|||
load_module extra/lnxIPfeDrv.ko |
|||
#load_module extra/framebuffer.ko cnxtfb_standalone=1 cnxtfb_hdwidth=1280 cnxtfb_hdheight=720 cnxtfb_hdmaxwidth=1280 cnxtfb_hdmaxheight=720 cnxtfb_autoscale_sd=2 |
|||
load_module extra/framebuffer.ko cnxtfb_standalone=1 cnxtfb_hdwidth=1920 cnxtfb_hdheight=1080 cnxtfb_hdmaxwidth=1920 cnxtfb_hdmaxheight=1080 cnxtfb_autoscale_sd=2 |
|||
|
|||
load_module extra/control.ko |
|||
load_module extra/frontpanel.ko |
|||
|
|||
create_node "cs_display" |
|||
ln -sf /dev/cs_display /dev/display |
|||
|
|||
LOGINFO "init drivers ..." |
|||
dt -t"INIT DRIVERS" |
|||
|
|||
load_module kernel/drivers/media/dvb-core/dvb-core.ko |
|||
load_module extra/typhoon.ko |
|||
load_module extra/blazer.ko |
|||
load_module extra/tavor.ko |
|||
load_module extra/a8296.ko |
|||
load_module extra/av201x.ko |
|||
load_module extra/sharp780x.ko |
|||
load_module extra/dvb_api_prop.ko |
|||
load_module extra/avl6761.ko |
|||
load_module extra/mxl603.ko |
|||
load_module extra/avl6211.ko |
|||
load_module extra/dvb_api.ko |
|||
load_module kernel/fs/cifs/cifs.ko |
|||
|
|||
create_node "KAL" |
|||
create_node "notifyq" |
|||
create_node "platform" |
|||
create_node "content" |
|||
create_node "standby" |
|||
create_node "video" |
|||
create_node "audio" |
|||
create_node "pvr" |
|||
create_node "ci" |
|||
create_node "cs_control" |
|||
create_node "cs_ir" |
|||
create_node_dir "fb" |
|||
create_node "FrontEnd" |
|||
create_node "ipfe" |
|||
create_node "pvrsrvkm" |
|||
create_node "vss_bc" |
|||
|
|||
mkdir -p /dev/input |
|||
ln -sf /dev/cs_ir /dev/input/nevis_ir |
|||
ln -sf /dev/cs_ir /dev/input/input0 |
|||
|
|||
# fire up network/wlan |
|||
service networking start |
|||
service ntpdate start |
|||
|
|||
# say hi to everyone |
|||
dt -ls01 |
|||
dt -ls02 |
|||
dt -c |
|||
dt -t"BOOT NI-IMAGE" |
|||
|
|||
# trap CTRL-C only in this shell so we can interrupt subprocesses |
|||
trap ":" INT QUIT TSTP |
|||
|
|||
# call all parts in order |
|||
exec /etc/init.d/rc S |
|||
|
|||
SHOWINFO "done" |
@ -1,98 +0,0 @@ |
|||
#!/bin/sh |
|||
|
|||
runlevel=S |
|||
prevlevel=N |
|||
umask 022 |
|||
export runlevel prevlevel |
|||
|
|||
# source defaults |
|||
. /etc/default/rcS |
|||
|
|||
. /etc/profile |
|||
. /etc/init.d/functions |
|||
. /etc/init.d/globals |
|||
|
|||
SHOWINFO "start" |
|||
|
|||
mount -t proc proc /proc |
|||
|
|||
# init system |
|||
SHOWINFO "creating and mounting system directories ..." |
|||
mount -t devtmpfs devtmpfs /dev |
|||
mount -t sysfs sys /sys |
|||
mount -t tmpfs tmp /tmp |
|||
mount -t tmpfs media /media |
|||
mount -t tmpfs srv /srv |
|||
mount -t tmpfs mnt /mnt |
|||
for dir in autofs epg logos logos/events movies music pictures plugins; do |
|||
mkdir -p /mnt/${dir} |
|||
done |
|||
mkdir -p /dev/pts |
|||
mount -t devpts devpts /dev/pts |
|||
mkdir -p /dev/shm/usb |
|||
|
|||
service partitions-by-name start |
|||
service resizerootfs start |
|||
|
|||
# for nfsd |
|||
mkdir -p /var/lib/nfs |
|||
mount -t tmpfs nfs /var/lib/nfs |
|||
|
|||
# for samba |
|||
mkdir -p /var/samba |
|||
mount -t tmpfs samba /var/samba |
|||
|
|||
# for wget |
|||
mkdir -p /var/run/wget |
|||
|
|||
# for wireless drivers |
|||
mkdir -p /var/run/wpa_supplicant |
|||
|
|||
# set level of messages printed to console |
|||
dmesg -n 1 |
|||
|
|||
# set dummy date |
|||
test -e /etc/date-dummy && date -s "$(cat /etc/date-dummy)" |
|||
|
|||
# automatic restore |
|||
if [ -e /var/backup_flash.tar.gz ]; then |
|||
/usr/bin/restore_flash.sh |
|||
fi |
|||
|
|||
# update system |
|||
if [ -x /etc/init.d/sys_update.sh ]; then |
|||
/etc/init.d/sys_update.sh |
|||
fi |
|||
|
|||
# set hostname |
|||
service hostname start |
|||
|
|||
# logging as much as possible |
|||
service syslogd start |
|||
|
|||
# load modules / create nodes |
|||
load_module extra/%(BOXMODEL)_1.ko |
|||
load_module extra/%(BOXMODEL)_2.ko |
|||
load_module extra/%(BOXMODEL)_3.ko |
|||
load_module extra/%(BOXMODEL)_4.ko |
|||
|
|||
# show bootlogo |
|||
showiframe.sh bootlogo.m2v |
|||
|
|||
# mdev coldplug for node permissions |
|||
service mdev start |
|||
|
|||
# fire up network/wlan |
|||
service networking start |
|||
service ntpdate start |
|||
|
|||
# say hi to everyone |
|||
echo "Booting... NI" > /dev/dbox/oled0 |
|||
|
|||
# trap CTRL-C only in this shell so we can interrupt subprocesses |
|||
trap ":" INT QUIT TSTP |
|||
|
|||
# call all parts in order |
|||
exec /etc/init.d/rc S |
|||
|
|||
SHOWINFO "done" |
@ -1,98 +0,0 @@ |
|||
#!/bin/sh |
|||
|
|||
runlevel=S |
|||
prevlevel=N |
|||
umask 022 |
|||
export runlevel prevlevel |
|||
|
|||
# source defaults |
|||
. /etc/default/rcS |
|||
|
|||
. /etc/profile |
|||
. /etc/init.d/functions |
|||
. /etc/init.d/globals |
|||
|
|||
SHOWINFO "start" |
|||
|
|||
mount -t proc proc /proc |
|||
|
|||
# init system |
|||
SHOWINFO "creating and mounting system directories ..." |
|||
mount -t devtmpfs devtmpfs /dev |
|||
mount -t sysfs sys /sys |
|||
mount -t tmpfs tmp /tmp |
|||
mount -t tmpfs media /media |
|||
mount -t tmpfs srv /srv |
|||
mount -t tmpfs mnt /mnt |
|||
for dir in autofs epg logos logos/events movies music pictures plugins; do |
|||
mkdir -p /mnt/${dir} |
|||
done |
|||
mkdir -p /dev/pts |
|||
mount -t devpts devpts /dev/pts |
|||
mkdir -p /dev/shm/usb |
|||
|
|||
service partitions-by-name start |
|||
service resizerootfs start |
|||
|
|||
# for nfsd |
|||
mkdir -p /var/lib/nfs |
|||
mount -t tmpfs nfs /var/lib/nfs |
|||
|
|||
# for samba |
|||
mkdir -p /var/samba |
|||
mount -t tmpfs samba /var/samba |
|||
|
|||
# for wget |
|||
mkdir -p /var/run/wget |
|||
|
|||
# for wireless drivers |
|||
mkdir -p /var/run/wpa_supplicant |
|||
|
|||
# set level of messages printed to console |
|||
dmesg -n 1 |
|||
|
|||
# set dummy date |
|||
test -e /etc/date-dummy && date -s "$(cat /etc/date-dummy)" |
|||
|
|||
# automatic restore |
|||
if [ -e /var/backup_flash.tar.gz ]; then |
|||
/usr/bin/restore_flash.sh |
|||
fi |
|||
|
|||
# update system |
|||
if [ -x /etc/init.d/sys_update.sh ]; then |
|||
/etc/init.d/sys_update.sh |
|||
fi |
|||
|
|||
# set hostname |
|||
service hostname start |
|||
|
|||
# logging as much as possible |
|||
service syslogd start |
|||
|
|||
# load modules / create nodes |
|||
load_module extra/%(BOXMODEL)_1.ko |
|||
load_module extra/%(BOXMODEL)_2.ko |
|||
load_module extra/%(BOXMODEL)_3.ko |
|||
load_module extra/%(BOXMODEL)_4.ko |
|||
|
|||
# show bootlogo |
|||
showiframe.sh bootlogo.m2v |
|||
|
|||
# mdev coldplug for node permissions |
|||
service mdev start |
|||
|
|||
# fire up network/wlan |
|||
service networking start |
|||
service ntpdate start |
|||
|
|||
# say hi to everyone |
|||
echo "Booting... NI" > /dev/dbox/oled0 |
|||
|
|||
# trap CTRL-C only in this shell so we can interrupt subprocesses |
|||
trap ":" INT QUIT TSTP |
|||
|
|||
# call all parts in order |
|||
exec /etc/init.d/rc S |
|||
|
|||
SHOWINFO "done" |
@ -1,93 +0,0 @@ |
|||
#!/bin/sh |
|||
|
|||
runlevel=S |
|||
prevlevel=N |
|||
umask 022 |
|||
export runlevel prevlevel |
|||
|
|||
# source defaults |
|||
. /etc/default/rcS |
|||
|
|||
. /etc/profile |
|||
. /etc/init.d/functions |
|||
. /etc/init.d/globals |
|||
|
|||
SHOWINFO "start" |
|||
|
|||
mount -t proc proc /proc |
|||
|
|||
# init system |
|||
SHOWINFO "creating and mounting system directories ..." |
|||
mount -t sysfs sys /sys |
|||
mount -t tmpfs tmp /tmp |
|||
mount -t tmpfs media /media |
|||
mount -t tmpfs srv /srv |
|||
mount -t tmpfs mnt /mnt |
|||
for dir in autofs epg logos logos/events movies music pictures plugins; do |
|||
mkdir -p /mnt/${dir} |
|||
done |
|||
mkdir -p /dev/pts |
|||
mount -t devpts devpts /dev/pts |
|||
mkdir -p /dev/shm/usb |
|||
|
|||
# for nfsd |
|||
mkdir -p /var/lib/nfs |
|||
mount -t tmpfs nfs /var/lib/nfs |
|||
|
|||
# for samba |
|||
mkdir -p /var/samba |
|||
mount -t tmpfs samba /var/samba |
|||
|
|||
# for wget |
|||
mkdir -p /var/run/wget |
|||
|
|||
# for wireless drivers |
|||
mkdir -p /var/run/wpa_supplicant |
|||
|
|||
# set level of messages printed to console |
|||
dmesg -n 1 |
|||
|
|||
# set dummy date |
|||
test -e /etc/date-dummy && date -s "$(cat /etc/date-dummy)" |
|||
|
|||
# automatic restore |
|||
if [ -e /var/backup_flash.tar.gz ]; then |
|||
/usr/bin/restore_flash.sh |
|||
fi |
|||
|
|||
# update system |
|||
if [ -x /etc/init.d/sys_update.sh ]; then |
|||
/etc/init.d/sys_update.sh |
|||
fi |
|||
|
|||
# set hostname |
|||
service hostname start |
|||
|
|||
# logging as much as possible |
|||
service syslogd start |
|||
|
|||
# load modules / create nodes |
|||
load_module extra/brcmfb.ko |
|||
load_module extra/dvb-bcm7335.ko |
|||
load_module extra/procmk.ko |
|||
|
|||
# show bootlogo |
|||
showiframe.sh bootlogo.m2v |
|||
|
|||
# mdev coldplug for node permissions |
|||
service mdev start |
|||
|
|||
# fire up network/wlan |
|||
service networking start |
|||
service ntpdate start |
|||
|
|||
# say hi to everyone |
|||
echo "Booting... NI" > /dev/dbox/oled0 |
|||
|
|||
# trap CTRL-C only in this shell so we can interrupt subprocesses |
|||
trap ":" INT QUIT TSTP |
|||
|
|||
# call all parts in order |
|||
exec /etc/init.d/rc S |
|||
|
|||
SHOWINFO "done" |
@ -1,92 +0,0 @@ |
|||
#!/bin/sh |
|||
|
|||
runlevel=S |
|||
prevlevel=N |
|||
umask 022 |
|||
export runlevel prevlevel |
|||
|
|||
# source defaults |
|||
. /etc/default/rcS |
|||
|
|||
. /etc/profile |
|||
. /etc/init.d/functions |
|||
. /etc/init.d/globals |
|||
|
|||
SHOWINFO "start" |
|||
|
|||
mount -t proc proc /proc |
|||
|
|||
# init system |
|||
SHOWINFO "creating and mounting system directories ..." |
|||
mount -t sysfs sys /sys |
|||
mount -t tmpfs tmp /tmp |
|||
mount -t tmpfs media /media |
|||
mount -t tmpfs srv /srv |
|||
mount -t tmpfs mnt /mnt |
|||
for dir in autofs epg logos logos/events movies music pictures plugins; do |
|||
mkdir -p /mnt/${dir} |
|||
done |
|||
mkdir -p /dev/pts |
|||
mount -t devpts devpts /dev/pts |
|||
mkdir -p /dev/shm/usb |
|||
|
|||
# for nfsd |
|||
mkdir -p /var/lib/nfs |
|||
mount -t tmpfs nfs /var/lib/nfs |
|||
|
|||
# for samba |
|||
mkdir -p /var/samba |
|||
mount -t tmpfs samba /var/samba |
|||
|
|||
# for wget |
|||
mkdir -p /var/run/wget |
|||
|
|||
# for wireless drivers |
|||
mkdir -p /var/run/wpa_supplicant |
|||
|
|||
# set level of messages printed to console |
|||
dmesg -n 1 |
|||
|
|||
# set dummy date |
|||
test -e /etc/date-dummy && date -s "$(cat /etc/date-dummy)" |
|||
|
|||
# automatic restore |
|||
if [ -e /var/backup_flash.tar.gz ]; then |
|||
/usr/bin/restore_flash.sh |
|||
fi |
|||
|
|||
# update system |
|||
if [ -x /etc/init.d/sys_update.sh ]; then |
|||
/etc/init.d/sys_update.sh |
|||
fi |
|||
|
|||
# set hostname |
|||
service hostname start |
|||
|
|||
# logging as much as possible |
|||
service syslogd start |
|||
|
|||
# load modules / create nodes |
|||
service vuplus-platform-util start |
|||
|
|||
# show bootlogo |
|||
showiframe.sh bootlogo.m2v |
|||
|
|||
# mdev coldplug for node permissions |
|||
service mdev start |
|||
|
|||
# fire up network/wlan |
|||
service networking start |
|||
service ntpdate start |
|||
|
|||
# say hi to everyone |
|||
oled -b 5 |
|||
oled -tc "Booting... NI" |
|||
|
|||
# trap CTRL-C only in this shell so we can interrupt subprocesses |
|||
trap ":" INT QUIT TSTP |
|||
|
|||
# call all parts in order |
|||
exec /etc/init.d/rc S |
|||
|
|||
SHOWINFO "done" |
@ -1,37 +0,0 @@ |
|||
# /etc/inittab: init configuration. |
|||
|
|||
# The default runlevel. |
|||
id:3:initdefault: |
|||
|
|||
# Boot-time system configuration/initialization script. |
|||
# This is run first except when booting in emergency (-b) mode. |
|||
si::sysinit:/etc/init.d/rcS |
|||
|
|||
# /etc/init.d executes the S and K scripts upon change |
|||
# of runlevel. |
|||
# |
|||
# Runlevel 0 is halt. |
|||
# Runlevel 1 is single-user. |
|||
# Runlevels 2-5 are multi-user. |
|||
# Runlevel 6 is reboot. |
|||
|
|||
l0:0:wait:/etc/init.d/rc 0 |
|||
l1:1:wait:/etc/init.d/rc 1 |
|||
l2:2:wait:/etc/init.d/rc 2 |
|||
l3:3:wait:/etc/init.d/rc 3 |
|||
l4:4:wait:/etc/init.d/rc 4 |
|||
l5:5:wait:/etc/init.d/rc 5 |
|||
l6:6:wait:/etc/init.d/rc 6 |
|||
|
|||
# run neutrino gui |
|||
gui:3:once:/etc/init.d/start_neutrino |
|||
|
|||
# Stuff to do for the 3-finger salute |
|||
#ca::ctrlaltdel:/sbin/reboot |
|||
|
|||
# Stuff to do before halt or reboot |
|||
shd0:06:wait:/etc/init.d/rcK |
|||
|
|||
# The usual halt or reboot actions |
|||
hlt0:0:wait:/sbin/halt -dhp |
|||
reb0:6:wait:/sbin/reboot |
@ -1,34 +0,0 @@ |
|||
#!/bin/sh |
|||
|
|||
. /etc/init.d/globals |
|||
|
|||
SERVICE="$1" |
|||
ACTION="$2" |
|||
shift 2 |
|||
OPTIONS="$*" |
|||
|
|||
usage() { |
|||
echo "usage: service <name> <action>" |
|||
echo " start or stop a given service (init script)" |
|||
echo " action depends on the init script" |
|||
echo |
|||
exit 1 |
|||
} |
|||
|
|||
test -z "$ACTION" && usage; |
|||
|
|||
for i in /etc/init.d/$SERVICE /var/etc/init.d/$SERVICE; do |
|||
if [ -x "$i" ]; then |
|||
LOGINFO "running $i $ACTION $OPTIONS" |
|||
"$i" "$ACTION" "$OPTIONS" |
|||
exit $? |
|||
fi |
|||
done |
|||
|
|||
echo "$SERVICE not found in /etc/init.d/ and /var/etc/init.d/" |
|||
SERVICES=$(for i in /etc/init.d/[^SK]* /var/etc/init.d/[^SK]*; do |
|||
echo "${i##*/}"; |
|||
done | sort -u | grep -v '^\(functions\|globals\|rc\|rcK\|rcS\|start_neutrino\|\[\^SK\]\*\)$') |
|||
echo "available services:" |
|||
echo $SERVICES | xargs -n 1 echo " " |
|||
exit 1 |
Loading…
Reference in new issue