--- /dev/null
+#csh
+
+if [ ! -d /dev/dvb/adapter0 ];
+then mkdir /dev/dvb/adapter0 -p
+fi
+
+insmod /lib/modules/2.6.18-7.3/extra/procmk.ko
+insmod /lib/modules/2.6.18-7.3/extra/fb.ko
+insmod /lib/modules/2.6.18-7.3/extra/dvb-core.ko
+insmod /lib/modules/2.6.18-7.3/extra/dvb-bcm7335.ko
+insmod /lib/modules/2.6.18-7.3/extra/brcmfb.ko
+
+
+#Don't like to change enigma2 source.
+#rm -rf /dev/fb
+#mkdir /dev/fb
+#ln -s /dev/fb0 /dev/fb/0
+
+#echo 10 > /proc/progress
+#[ -e /dev/dbox/oled0 ] && ln -s /dev/dbox/oled0 /dev/dbox/lcd0
+
+#mount -t sysfs sysfs /sys
+#echo 11 > /proc/progress
+
+depmod -Ae
+echo 12 > /proc/progress
+
+for mod in isofs cifs usb-storage sr_mod vfat cdrom ntfs; do
+ modprobe $mod
+done
+
+for mod in sata_svw libata nls_base nls_cp437 nls_iso8859-1; do
+ modprobe $mod
+done
+
+echo 13 > /proc/progress
+
+#(sleep 10; cat /etc/fscking.raw > /dev/dbox/oled0; sleep 1d) &
+#pid=$!
+#mount -at nonfs,nosmbfs,noncpfs,nocifs
+#kill $pid
+
+mount -at nonfs,nosmbfs,noncpfs,nocifs
+echo 14 > /proc/progress
+
+swapon -a
+echo 15 > /proc/progress
+
+tar xzf /etc/var.tar.gz -C /
+echo 16 > /proc/progress
+
+# sleep after 10min
+hdparm -S 120 /dev/discs/disc0/disc
+#hdparm2 -S 120 /dev/discs/disc0/disc
+
+echo 17 > /proc/progress
+
+# set UDMA66, enable dma
+hdparm -d 1 /dev/discs/disc0/disc
+hdparm -X66 /dev/discs/disc0/disc
+
+# accustic management
+hdparm -M 128 /dev/discs/disc0/disc
+
+# disable dma for cd drive ...
+# we remove this when the dma timeout problem is fixed!
+#hdparm -d 0 /dev/ide/host0/bus0/target0/lun0/cd
+
+#echo 18 > /proc/progress
+#for mod in dreambox_keyboard fp bcm7400; do
+# modprobe $mod
+#done
+
+echo 19 > /proc/progress
+
+cat /etc/videomode > /proc/stb/video/videomode
+
+echo 20 > /proc/progress
+
+#for mod in rt73 zd1211b; do
+# modprobe $mod
+#done
+
+#echo "loading madwifi modules"
+#for x in wlan ath_rate; do
+# for mod in `ls /lib/modules/$(uname -r)/net | grep $x | cut -d . -f 0`; do
+# modprobe $mod
+# done
+#done
+#modprobe ath_pci
+
+echo 21 > /proc/progress
+
+[ -e /etc/dropbear/dropbear_rsa_host_key ] && /usr/bin/showiframe /boot/bootlogo.mvi || /usr/bin/showiframe /boot/bootlogo_wait.mvi
+
+hostname -F /etc/hostname
+
+echo 22 > /proc/progress
+
+#/usr/bin/wdog /usr/bin/dccamd -
+
+echo 23 > /proc/progress
+
+[ -e "/etc/sysctl.conf" ] && /sbin/sysctl -p "/etc/sysctl.conf"
+
+echo 24 > /proc/progress
+
+ldconfig
+
+echo 25 > /proc/progress
+
+ipkg-cl configure
+
+if [ -f /usr/local/bin/vucamd ];
+then /usr/local/bin/vucamd &
+fi
+
+/usr/bin/hotplug_br &
--- /dev/null
+#! /bin/sh
+#
+# halt Execute the halt command.
+#
+# Version: @(#)halt 2.84-2 07-Jan-2002 miquels@cistron.nl
+#
+
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+
+# See if we need to cut the power.
+if test -x /etc/init.d/ups-monitor
+then
+ /etc/init.d/ups-monitor poweroff
+fi
+
+# Don't shut down drives if we're using RAID.
+hddown="-h"
+if grep -qs '^md.*active' /proc/mdstat
+then
+ hddown=""
+fi
+
+showiframe /usr/share/switchoff.mvi
+
+/usr/bin/turnoff_power
+
+halt -d -f -i -p $hddown
+
+: exit 0
--- /dev/null
+#csh
+
+if [ ! -d /dev/dvb/adapter0 ];
+then mkdir /dev/dvb/adapter0 -p
+fi
+
+insmod /lib/modules/2.6.18-7.3/extra/procmk.ko
+insmod /lib/modules/2.6.18-7.3/extra/fb.ko
+insmod /lib/modules/2.6.18-7.3/extra/dvb-core.ko
+insmod /lib/modules/2.6.18-7.3/extra/dvb-bcm7335.ko
+insmod /lib/modules/2.6.18-7.3/extra/brcmfb.ko
+
+
+#Don't like to change enigma2 source.
+#rm -rf /dev/fb
+#mkdir /dev/fb
+#ln -s /dev/fb0 /dev/fb/0
+
+#echo 10 > /proc/progress
+#[ -e /dev/dbox/oled0 ] && ln -s /dev/dbox/oled0 /dev/dbox/lcd0
+
+#mount -t sysfs sysfs /sys
+#echo 11 > /proc/progress
+
+depmod -Ae
+echo 12 > /proc/progress
+
+for mod in isofs cifs usb-storage sr_mod vfat cdrom ntfs; do
+ modprobe $mod
+done
+
+for mod in sata_svw libata nls_base nls_cp437 nls_iso8859-1; do
+ modprobe $mod
+done
+
+echo 13 > /proc/progress
+
+#(sleep 10; cat /etc/fscking.raw > /dev/dbox/oled0; sleep 1d) &
+#pid=$!
+#mount -at nonfs,nosmbfs,noncpfs,nocifs
+#kill $pid
+
+mount -at nonfs,nosmbfs,noncpfs,nocifs
+echo 14 > /proc/progress
+
+swapon -a
+echo 15 > /proc/progress
+
+tar xzf /etc/var.tar.gz -C /
+echo 16 > /proc/progress
+
+# sleep after 10min
+hdparm -S 120 /dev/discs/disc0/disc
+#hdparm2 -S 120 /dev/discs/disc0/disc
+
+echo 17 > /proc/progress
+
+# set UDMA66, enable dma
+hdparm -d 1 /dev/discs/disc0/disc
+hdparm -X66 /dev/discs/disc0/disc
+
+# accustic management
+hdparm -M 128 /dev/discs/disc0/disc
+
+# disable dma for cd drive ...
+# we remove this when the dma timeout problem is fixed!
+#hdparm -d 0 /dev/ide/host0/bus0/target0/lun0/cd
+
+#echo 18 > /proc/progress
+#for mod in dreambox_keyboard fp bcm7400; do
+# modprobe $mod
+#done
+
+echo 19 > /proc/progress
+
+cat /etc/videomode > /proc/stb/video/videomode
+
+echo 20 > /proc/progress
+
+#for mod in rt73 zd1211b; do
+# modprobe $mod
+#done
+
+#echo "loading madwifi modules"
+#for x in wlan ath_rate; do
+# for mod in `ls /lib/modules/$(uname -r)/net | grep $x | cut -d . -f 0`; do
+# modprobe $mod
+# done
+#done
+#modprobe ath_pci
+
+echo 21 > /proc/progress
+
+[ -e /etc/dropbear/dropbear_rsa_host_key ] && /usr/bin/showiframe /boot/bootlogo.mvi || /usr/bin/showiframe /boot/bootlogo_wait.mvi
+
+hostname -F /etc/hostname
+
+echo 22 > /proc/progress
+
+#/usr/bin/wdog /usr/bin/dccamd -
+
+echo 23 > /proc/progress
+
+[ -e "/etc/sysctl.conf" ] && /sbin/sysctl -p "/etc/sysctl.conf"
+
+echo 24 > /proc/progress
+
+ldconfig
+
+echo 25 > /proc/progress
+
+ipkg-cl configure
+
+if [ -f /usr/local/bin/vucamd ];
+then /usr/local/bin/vucamd &
+fi
+
+/usr/bin/hotplug_br &
--- /dev/null
+#! /bin/sh
+#
+# halt Execute the halt command.
+#
+# Version: @(#)halt 2.84-2 07-Jan-2002 miquels@cistron.nl
+#
+
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+
+# See if we need to cut the power.
+if test -x /etc/init.d/ups-monitor
+then
+ /etc/init.d/ups-monitor poweroff
+fi
+
+# Don't shut down drives if we're using RAID.
+hddown="-h"
+if grep -qs '^md.*active' /proc/mdstat
+then
+ hddown=""
+fi
+
+showiframe /usr/share/switchoff.mvi
+
+/usr/bin/turnoff_power
+
+halt -d -f -i -p $hddown
+
+: exit 0
--- /dev/null
+DESCRIPTION = "SysV init scripts for VuPlus"
+SECTION = "base"
+PRIORITY = "required"
+DEPENDS = "makedevs"
+RDEPENDS = "makedevs"
+LICENSE = "GPL"
+PR = "r22"
+
+#FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/${P}', '${FILE_DIRNAME}/initscripts-${PV}', '${FILE_DIRNAME}/files', '${FILE_DIRNAME}' ], d)}"
+#deprecated
+FILESPATHPKG = "initscripts-${PV}:initscripts:files"
+
+
+SRC_URI = "file://halt \
+ file://umountfs \
+ file://devpts.sh \
+ file://devpts \
+ file://turnoff_power \
+ file://reboot \
+ file://single \
+ file://sendsigs \
+ file://rmnologin \
+ file://umountnfs.sh \
+ file://netmount.sh \
+ file://var.tar.gz.default \
+ file://sysfs.sh \
+ file://hotplug_br \
+ file://make_mac_sector \
+ file://bootup"
+
+
+do_install () {
+#
+# Create directories and install device independent scripts
+#
+ install -d ${D}${sysconfdir}/init.d \
+ ${D}${sysconfdir}/rcS.d \
+ ${D}${sysconfdir}/rc0.d \
+ ${D}${sysconfdir}/rc1.d \
+ ${D}${sysconfdir}/rc2.d \
+ ${D}${sysconfdir}/rc3.d \
+ ${D}${sysconfdir}/rc4.d \
+ ${D}${sysconfdir}/rc5.d \
+ ${D}${sysconfdir}/rc6.d \
+ ${D}/usr/bin \
+ ${D}${sysconfdir}/default
+
+ install -m 0755 ${WORKDIR}/halt ${D}${sysconfdir}/init.d
+ install -m 0755 ${WORKDIR}/turnoff_power ${D}/usr/bin
+ install -m 0755 ${WORKDIR}/hotplug_br ${D}/usr/bin
+ install -m 0755 ${WORKDIR}/make_mac_sector ${D}/usr/bin
+ install -m 0755 ${WORKDIR}/reboot ${D}${sysconfdir}/init.d
+ install -m 0755 ${WORKDIR}/rmnologin ${D}${sysconfdir}/init.d
+ install -m 0755 ${WORKDIR}/sendsigs ${D}${sysconfdir}/init.d
+ install -m 0755 ${WORKDIR}/single ${D}${sysconfdir}/init.d
+ install -m 0755 ${WORKDIR}/bootup ${D}${sysconfdir}/init.d
+ install -m 0755 ${WORKDIR}/devpts.sh ${D}${sysconfdir}/init.d
+ install -m 0755 ${WORKDIR}/devpts ${D}${sysconfdir}/default
+ install -m 0755 ${WORKDIR}/sysfs.sh ${D}${sysconfdir}/init.d
+ install -m 0755 ${WORKDIR}/var.tar.gz.default ${D}${sysconfdir}/var.tar.gz
+
+#
+# Install device dependent scripts
+#
+ install -m 0755 ${WORKDIR}/umountfs ${D}${sysconfdir}/init.d/umountfs
+ install -d ${D}${sysconfdir}/network/if-up.d
+ install -m 0755 ${WORKDIR}/netmount.sh ${D}${sysconfdir}/network/if-up.d/02netmount
+ install -d ${D}${sysconfdir}/network/if-down.d
+ install -m 0755 ${WORKDIR}/umountnfs.sh ${D}${sysconfdir}/network/if-down.d/02umountnfs
+
+ ln -sf ../init.d/rmnologin ${D}${sysconfdir}/rc2.d/S99rmnologin
+ ln -sf ../init.d/rmnologin ${D}${sysconfdir}/rc3.d/S99rmnologin
+ ln -sf ../init.d/rmnologin ${D}${sysconfdir}/rc4.d/S99rmnologin
+ ln -sf ../init.d/rmnologin ${D}${sysconfdir}/rc5.d/S99rmnologin
+ ln -sf ../init.d/sendsigs ${D}${sysconfdir}/rc6.d/S20sendsigs
+ ln -sf ../init.d/umountfs ${D}${sysconfdir}/rc6.d/S40umountfs
+ ln -sf ../init.d/reboot ${D}${sysconfdir}/rc6.d/S90reboot
+ ln -sf ../init.d/sendsigs ${D}${sysconfdir}/rc0.d/S20sendsigs
+ ln -sf ../init.d/umountfs ${D}${sysconfdir}/rc0.d/S40umountfs
+ ln -sf ../init.d/halt ${D}${sysconfdir}/rc0.d/S90halt
+ ln -sf ../init.d/sysfs.sh ${D}${sysconfdir}/rcS.d/S02sysfs
+ ln -sf ../init.d/devpts.sh ${D}${sysconfdir}/rcS.d/S38devpts.sh
+ ln -sf ../init.d/bootup ${D}${sysconfdir}/rcS.d/S05bootup
+
+}
+