From 138bc72be5e0435eed43ecea2001c4026d066cfb Mon Sep 17 00:00:00 2001 From: vanhofen Date: Tue, 2 Mar 2021 18:11:33 +0100 Subject: [PATCH] - sysvinit: move files to package dir --- make/target-files.mk | 4 - make/target-scripts.mk | 25 --- make/target-tools.mk | 30 ++- skel-root/general/files-etc/default/rcS | 29 --- skel-root/general/files-etc/init.d/rc | 185 ------------------ skel-root/general/files-etc/init.d/rcK | 21 -- skel-root/general/files-etc/init.d/rcS-hd1 | 161 --------------- skel-root/general/files-etc/init.d/rcS-hd2 | 163 --------------- skel-root/general/files-etc/init.d/rcS-hd5x | 98 ---------- skel-root/general/files-etc/init.d/rcS-hd6x | 98 ---------- skel-root/general/files-etc/init.d/rcS-vuduo | 93 --------- skel-root/general/files-etc/init.d/rcS-vuplus | 92 --------- skel-root/general/files-etc/inittab | 37 ---- skel-root/general/scripts/service | 34 ---- 14 files changed, 26 insertions(+), 1044 deletions(-) delete mode 100644 skel-root/general/files-etc/default/rcS delete mode 100644 skel-root/general/files-etc/init.d/rc delete mode 100644 skel-root/general/files-etc/init.d/rcK delete mode 100644 skel-root/general/files-etc/init.d/rcS-hd1 delete mode 100644 skel-root/general/files-etc/init.d/rcS-hd2 delete mode 100644 skel-root/general/files-etc/init.d/rcS-hd5x delete mode 100644 skel-root/general/files-etc/init.d/rcS-hd6x delete mode 100644 skel-root/general/files-etc/init.d/rcS-vuduo delete mode 100644 skel-root/general/files-etc/init.d/rcS-vuplus delete mode 100644 skel-root/general/files-etc/inittab delete mode 100644 skel-root/general/scripts/service diff --git a/make/target-files.mk b/make/target-files.mk index 367c8850..3ec12731 100644 --- a/make/target-files.mk +++ b/make/target-files.mk @@ -13,7 +13,6 @@ files-etc: \ $(TARGET_sysconfdir)/group \ $(TARGET_sysconfdir)/hosts \ $(TARGET_sysconfdir)/inetd.conf \ - $(TARGET_sysconfdir)/inittab \ $(TARGET_sysconfdir)/issue.net \ $(TARGET_sysconfdir)/nsswitch.conf \ $(TARGET_sysconfdir)/passwd \ @@ -62,9 +61,6 @@ $(TARGET_sysconfdir)/hosts: $(TARGET_sysconfdir)/inetd.conf: $(INSTALL_DATA) -D $(TARGET_FILES)/files-etc/inetd.conf $(@) -$(TARGET_sysconfdir)/inittab: - $(INSTALL_DATA) -D $(TARGET_FILES)/files-etc/inittab $(@) - $(TARGET_sysconfdir)/issue.net: $(INSTALL_DATA) -D $(TARGET_FILES)/files-etc/issue.net $(@) diff --git a/make/target-scripts.mk b/make/target-scripts.mk index f5d8c52a..fca84c72 100644 --- a/make/target-scripts.mk +++ b/make/target-scripts.mk @@ -6,9 +6,6 @@ init-scripts: \ $(TARGET_sysconfdir)/init.d/globals \ $(TARGET_sysconfdir)/init.d/functions \ - $(TARGET_sysconfdir)/init.d/rc \ - $(TARGET_sysconfdir)/init.d/rcS \ - $(TARGET_sysconfdir)/init.d/rcK \ \ $(TARGET_sysconfdir)/init.d/camd \ $(TARGET_sysconfdir)/init.d/camd_datefix \ @@ -42,20 +39,6 @@ $(TARGET_sysconfdir)/init.d/globals: $(TARGET_sysconfdir)/init.d/functions: $(INSTALL_DATA) -D $(TARGET_FILES)/scripts/init.functions $(@) -$(TARGET_sysconfdir)/init.d/rc: - $(INSTALL_EXEC) -D $(TARGET_FILES)/files-etc/init.d/rc $(@) - -$(TARGET_sysconfdir)/init.d/rcS: -ifeq ($(BOXMODEL),$(filter $(BOXMODEL),vusolo4k vuduo4k vuduo4kse vuultimo4k vuzero4k vuuno4k vuuno4kse)) - $(INSTALL_EXEC) -D $(TARGET_FILES)/files-etc/init.d/rcS-vuplus $(@) -else - $(INSTALL_EXEC) -D $(TARGET_FILES)/files-etc/init.d/rcS-$(BOXSERIES) $(@) -endif - $(SED) "s|%(BOXMODEL)|$(BOXMODEL)|g" $(@) - -$(TARGET_sysconfdir)/init.d/rcK: - $(INSTALL_EXEC) -D $(TARGET_FILES)/files-etc/init.d/rcK $(@) - $(TARGET_sysconfdir)/init.d/camd: $(INSTALL_EXEC) -D $(TARGET_FILES)/scripts/camd.init $(@) $(UPDATE-RC.D) $(@F) defaults 98 01 @@ -163,15 +146,7 @@ endif # ----------------------------------------------------------------------------- scripts: \ - $(TARGET_sbindir)/service \ - $(TARGET_sbindir)/update-rc.d \ $(TARGET_datadir)/udhcpc/default.script -$(TARGET_sbindir)/service: - $(INSTALL_EXEC) -D $(TARGET_FILES)/scripts/service $(@) - -$(TARGET_sbindir)/update-rc.d: - $(INSTALL_EXEC) -D support/scripts/update-rc.d $(@) - $(TARGET_datadir)/udhcpc/default.script: $(INSTALL_EXEC) -D $(TARGET_FILES)/scripts/udhcpc-default.script $(@) diff --git a/make/target-tools.mk b/make/target-tools.mk index fda646d0..41d12765 100644 --- a/make/target-tools.mk +++ b/make/target-tools.mk @@ -133,13 +133,13 @@ busybox: $(BUSYBOX_DEPS) $(DL_DIR)/$(BUSYBOX_SOURCE) | $(TARGET_DIR) $(UNTAR)/$(PKG_SOURCE) $(CHDIR)/$(PKG_DIR); \ $(APPLY_PATCHES); \ - $(BUSYBOX_INSTALL_CONFIG) - $(BUSYBOX_MODIFY_CONFIG) + $($(PKG)_INSTALL_CONFIG) + $($(PKG)_MODIFY_CONFIG) $(CHDIR)/$(PKG_DIR); \ $($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_MAKE_OPTS) busybox; \ $($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_MAKE_OPTS) install-noclobber - $(BUSYBOX_ADD_TO_SHELLS) - $(BUSYBOX_INSTALL_FILES) + $($(PKG)_ADD_TO_SHELLS) + $($(PKG)_INSTALL_FILES) $(REMOVE)/$(PKG_DIR) $(TOUCH) @@ -194,6 +194,27 @@ SYSVINIT_SITE = http://download.savannah.nongnu.org/releases/sysvinit $(DL_DIR)/$(SYSVINIT_SOURCE): $(DOWNLOAD) $(SYSVINIT_SITE)/$(SYSVINIT_SOURCE) +ifeq ($(BOXMODEL),$(filter $(BOXMODEL),vusolo4k vuduo4k vuduo4kse vuultimo4k vuzero4k vuuno4k vuuno4kse)) + define SYSVINIT_INSTALL_RCS + $(INSTALL_EXEC) -D $(PKG_FILES_DIR)/rcS-vuplus $(TARGET_sysconfdir)/init.d/rcS + endef +else + define SYSVINIT_INSTALL_RCS + $(INSTALL_EXEC) -D $(PKG_FILES_DIR)/rcS-$(BOXSERIES) $(TARGET_sysconfdir)/init.d/rcS + endef +endif + +define SYSVINIT_INSTALL_FILES + $(INSTALL_DATA) -D $(PKG_FILES_DIR)/inittab $(TARGET_sysconfdir)/inittab + $(INSTALL_DATA) -D $(PKG_FILES_DIR)/default-rcS $(TARGET_sysconfdir)/default/rcS + $(INSTALL_EXEC) -D $(PKG_FILES_DIR)/rc $(TARGET_sysconfdir)/init.d/rc + $(SYSVINIT_INSTALL_RCS) + $(SED) "s|%(BOXMODEL)|$(BOXMODEL)|g" $(TARGET_sysconfdir)/init.d/rcS + $(INSTALL_EXEC) -D $(PKG_FILES_DIR)/rcK $(TARGET_sysconfdir)/init.d/rcK + $(INSTALL_EXEC) -D $(PKG_FILES_DIR)/service $(TARGET_sbindir)/service + $(INSTALL_EXEC) -D support/scripts/update-rc.d $(TARGET_sbindir)/update-rc.d +endef + sysvinit: $(DL_DIR)/$(SYSVINIT_SOURCE) | $(TARGET_DIR) $(REMOVE)/$(PKG_DIR) $(UNTAR)/$(PKG_SOURCE) @@ -204,6 +225,7 @@ sysvinit: $(DL_DIR)/$(SYSVINIT_SOURCE) | $(TARGET_DIR) $(MAKE) install ROOT=$(TARGET_DIR) MANDIR=$(REMOVE_mandir) -rm $(addprefix $(TARGET_base_sbindir)/,bootlogd fstab-decode logsave telinit) -rm $(addprefix $(TARGET_bindir)/,last lastb mesg readbootlog utmpdump wall) + $($(PKG)_INSTALL_FILES) $(REMOVE)/$(PKG_DIR) $(TOUCH) diff --git a/skel-root/general/files-etc/default/rcS b/skel-root/general/files-etc/default/rcS deleted file mode 100644 index 00cd5d36..00000000 --- a/skel-root/general/files-etc/default/rcS +++ /dev/null @@ -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 diff --git a/skel-root/general/files-etc/init.d/rc b/skel-root/general/files-etc/init.d/rc deleted file mode 100644 index 3f9d23d0..00000000 --- a/skel-root/general/files-etc/init.d/rc +++ /dev/null @@ -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 -# Bruce Perens -# -# 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 " >&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 diff --git a/skel-root/general/files-etc/init.d/rcK b/skel-root/general/files-etc/init.d/rcK deleted file mode 100644 index b5c80aa2..00000000 --- a/skel-root/general/files-etc/init.d/rcK +++ /dev/null @@ -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" diff --git a/skel-root/general/files-etc/init.d/rcS-hd1 b/skel-root/general/files-etc/init.d/rcS-hd1 deleted file mode 100644 index ffdd1f90..00000000 --- a/skel-root/general/files-etc/init.d/rcS-hd1 +++ /dev/null @@ -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 -# -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" diff --git a/skel-root/general/files-etc/init.d/rcS-hd2 b/skel-root/general/files-etc/init.d/rcS-hd2 deleted file mode 100644 index 79d33a93..00000000 --- a/skel-root/general/files-etc/init.d/rcS-hd2 +++ /dev/null @@ -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" diff --git a/skel-root/general/files-etc/init.d/rcS-hd5x b/skel-root/general/files-etc/init.d/rcS-hd5x deleted file mode 100644 index f82073fd..00000000 --- a/skel-root/general/files-etc/init.d/rcS-hd5x +++ /dev/null @@ -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" diff --git a/skel-root/general/files-etc/init.d/rcS-hd6x b/skel-root/general/files-etc/init.d/rcS-hd6x deleted file mode 100644 index f82073fd..00000000 --- a/skel-root/general/files-etc/init.d/rcS-hd6x +++ /dev/null @@ -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" diff --git a/skel-root/general/files-etc/init.d/rcS-vuduo b/skel-root/general/files-etc/init.d/rcS-vuduo deleted file mode 100644 index 6ba4eee7..00000000 --- a/skel-root/general/files-etc/init.d/rcS-vuduo +++ /dev/null @@ -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" diff --git a/skel-root/general/files-etc/init.d/rcS-vuplus b/skel-root/general/files-etc/init.d/rcS-vuplus deleted file mode 100644 index 158fd1a6..00000000 --- a/skel-root/general/files-etc/init.d/rcS-vuplus +++ /dev/null @@ -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" diff --git a/skel-root/general/files-etc/inittab b/skel-root/general/files-etc/inittab deleted file mode 100644 index 9c6fdbe8..00000000 --- a/skel-root/general/files-etc/inittab +++ /dev/null @@ -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 diff --git a/skel-root/general/scripts/service b/skel-root/general/scripts/service deleted file mode 100644 index adfd8196..00000000 --- a/skel-root/general/scripts/service +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh - -. /etc/init.d/globals - -SERVICE="$1" -ACTION="$2" -shift 2 -OPTIONS="$*" - -usage() { - echo "usage: service " - 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