From 4c15a7aa4221e096108db1e565f4b7ecce0cc9bb Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Fri, 6 Feb 2004 17:29:16 +0000 Subject: initscript uses our new machine scheme now BKrev: 4023ceecsTzvM20GBlZ38KGiVoso5Q --- initscripts/initscripts-1.0-r0/banner-simpad | 0 initscripts/initscripts-1.0-r0/devices | 59 +++++++++++++++++++++ initscripts/initscripts-1.0-r0/devices-h3600 | 0 initscripts/initscripts-1.0-r0/devices-simpad | 0 initscripts/initscripts-1.0-r0/devices_h3600 | 0 initscripts/initscripts-1.0-r0/devices_simpad | 0 initscripts/initscripts-1.0-r0/extractfs | 28 ++++++++++ initscripts/initscripts-1.0-r0/extractfs-ramses | 0 initscripts/initscripts-1.0-r0/h3600/devices | 0 initscripts/initscripts-1.0-r0/packages | 0 initscripts/initscripts-1.0-r0/packages-ramses | 0 initscripts/initscripts-1.0-r0/packages_default | 0 initscripts/initscripts-1.0-r0/packages_ramses | 0 initscripts/initscripts-1.0-r0/ramses/extractfs | 0 initscripts/initscripts-1.0-r0/ramses/umountfs | 0 initscripts/initscripts-1.0-r0/simpad/banner | 0 initscripts/initscripts-1.0-r0/simpad/devices | 0 initscripts/initscripts-1.0-r0/umountfs | 18 +++++++ initscripts/initscripts-1.0-r0/umountfs-ramses | 0 initscripts/initscripts_1.0.oe | 68 +++++++++++++++++++++++++ 20 files changed, 173 insertions(+) delete mode 100644 initscripts/initscripts-1.0-r0/banner-simpad delete mode 100644 initscripts/initscripts-1.0-r0/devices-h3600 delete mode 100644 initscripts/initscripts-1.0-r0/devices-simpad create mode 100644 initscripts/initscripts-1.0-r0/devices_h3600 create mode 100644 initscripts/initscripts-1.0-r0/devices_simpad delete mode 100644 initscripts/initscripts-1.0-r0/extractfs-ramses create mode 100644 initscripts/initscripts-1.0-r0/h3600/devices delete mode 100644 initscripts/initscripts-1.0-r0/packages delete mode 100644 initscripts/initscripts-1.0-r0/packages-ramses create mode 100644 initscripts/initscripts-1.0-r0/packages_default create mode 100644 initscripts/initscripts-1.0-r0/packages_ramses create mode 100644 initscripts/initscripts-1.0-r0/ramses/extractfs create mode 100644 initscripts/initscripts-1.0-r0/ramses/umountfs create mode 100644 initscripts/initscripts-1.0-r0/simpad/banner create mode 100644 initscripts/initscripts-1.0-r0/simpad/devices delete mode 100644 initscripts/initscripts-1.0-r0/umountfs-ramses diff --git a/initscripts/initscripts-1.0-r0/banner-simpad b/initscripts/initscripts-1.0-r0/banner-simpad deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/initscripts/initscripts-1.0-r0/devices b/initscripts/initscripts-1.0-r0/devices index e69de29bb2..5524af4162 100644 --- a/initscripts/initscripts-1.0-r0/devices +++ b/initscripts/initscripts-1.0-r0/devices @@ -0,0 +1,59 @@ +#!/bin/sh +# +# Devfs handling script. Since we arent running devfsd due to various reasons +# which I will not lay out here, we need to create some links for compatibility. + +. /etc/default/rcS + +if test -e /dev/.devfsd +then + if test "$VERBOSE" != "no"; then echo -n "Setting up device links for devfs: "; fi + ln -s /dev/touchscreen/0 /dev/ts + ln -s /dev/touchscreen/0raw /dev/tsraw + ln -s /dev/vc/0 /dev/tty0 + ln -s /dev/vc/1 /dev/tty1 + ln -s /dev/vc/2 /dev/tty2 + ln -s /dev/vc/3 /dev/tty3 + ln -s /dev/vc/4 /dev/tty4 + ln -s /dev/vc/5 /dev/tty5 + ln -s /dev/fb/0 /dev/fb0 +# ln -s /dev/tts/0 /dev/ttySA0 +# ln -s /dev/tts/1 /dev/ttySA1 +# ln -s /dev/tts/2 /dev/ttySA2 + + ln -s /dev/sound/dsp /dev/dsp + ln -s /dev/sound/mixer /dev/mixer + + ln -s /dev/v4l/video0 /dev/video0 + ln -s /dev/v4l/video0 /dev/video + ln -s /dev/misc/rtc /dev/rtc + + ## need this so that ppp will autoload the ppp modules + mknod /dev/ppp c 108 0 + if test "$VERBOSE" != "no"; then echo "done"; fi +else + if test "$VERBOSE" != "no"; then echo -n "Mounting /dev ramdisk: "; fi + mount -t ramfs ramfs /dev + if test $? -ne 0; then + if test "$VERBOSE" != "no"; then echo "failed"; fi + else + if test "$VERBOSE" != "no"; then echo "done"; fi + fi + if test "$VERBOSE" != "no"; then echo -n "Populating /dev: "; fi + cd / + mkdir -p dev/msys + mkdir -p dev/pts +# ln -sf /dev/dsp1 /dev/sharp_buz + ln -sf /dev/sharp_ts /dev/ts + ln -sf /dev/collie-fl /dev/fl + ln -sf /proc/self/fd /dev/fd + ln -sf /proc/kcore /dev/core + /sbin/makedevs -r / -D /etc/device_table + if test $? -ne 0; then + if test "$VERBOSE" != "no"; then echo "failed"; fi + else + if test "$VERBOSE" != "no"; then echo "done"; fi + fi +fi + +exit 0 diff --git a/initscripts/initscripts-1.0-r0/devices-h3600 b/initscripts/initscripts-1.0-r0/devices-h3600 deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/initscripts/initscripts-1.0-r0/devices-simpad b/initscripts/initscripts-1.0-r0/devices-simpad deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/initscripts/initscripts-1.0-r0/devices_h3600 b/initscripts/initscripts-1.0-r0/devices_h3600 new file mode 100644 index 0000000000..e69de29bb2 diff --git a/initscripts/initscripts-1.0-r0/devices_simpad b/initscripts/initscripts-1.0-r0/devices_simpad new file mode 100644 index 0000000000..e69de29bb2 diff --git a/initscripts/initscripts-1.0-r0/extractfs b/initscripts/initscripts-1.0-r0/extractfs index e69de29bb2..e5fa4e2985 100644 --- a/initscripts/initscripts-1.0-r0/extractfs +++ b/initscripts/initscripts-1.0-r0/extractfs @@ -0,0 +1,28 @@ +#!/bin/sh + +. /etc/default/rcS + +set -e + +if (grep -q 'ramfs.*/var.*ramfs' /proc/mounts) || (grep -q 'tmpfs.*/var.*tmpfs' /proc/mounts) +then + if test "$VERBOSE" != "no"; then echo -n "Populating /var filesystem: "; fi + cd / + tar -xpf /boot/var.tar + if test $? -ne 0; then + if test "$VERBOSE" != "no"; then echo "failed"; fi + else + if test "$VERBOSE" != "no"; then echo "done"; fi + fi +fi + +# Sharp ROM compatibility links +if ! [ -e /home/QtPalmtop ]; then + ln -sf /opt/QtPalmtop /home/QtPalmtop +fi + +if ! [ -e /home/root ]; then + ln -sf /root /home/root +fi + +exit 0 diff --git a/initscripts/initscripts-1.0-r0/extractfs-ramses b/initscripts/initscripts-1.0-r0/extractfs-ramses deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/initscripts/initscripts-1.0-r0/h3600/devices b/initscripts/initscripts-1.0-r0/h3600/devices new file mode 100644 index 0000000000..e69de29bb2 diff --git a/initscripts/initscripts-1.0-r0/packages b/initscripts/initscripts-1.0-r0/packages deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/initscripts/initscripts-1.0-r0/packages-ramses b/initscripts/initscripts-1.0-r0/packages-ramses deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/initscripts/initscripts-1.0-r0/packages_default b/initscripts/initscripts-1.0-r0/packages_default new file mode 100644 index 0000000000..e69de29bb2 diff --git a/initscripts/initscripts-1.0-r0/packages_ramses b/initscripts/initscripts-1.0-r0/packages_ramses new file mode 100644 index 0000000000..e69de29bb2 diff --git a/initscripts/initscripts-1.0-r0/ramses/extractfs b/initscripts/initscripts-1.0-r0/ramses/extractfs new file mode 100644 index 0000000000..e69de29bb2 diff --git a/initscripts/initscripts-1.0-r0/ramses/umountfs b/initscripts/initscripts-1.0-r0/ramses/umountfs new file mode 100644 index 0000000000..e69de29bb2 diff --git a/initscripts/initscripts-1.0-r0/simpad/banner b/initscripts/initscripts-1.0-r0/simpad/banner new file mode 100644 index 0000000000..e69de29bb2 diff --git a/initscripts/initscripts-1.0-r0/simpad/devices b/initscripts/initscripts-1.0-r0/simpad/devices new file mode 100644 index 0000000000..e69de29bb2 diff --git a/initscripts/initscripts-1.0-r0/umountfs b/initscripts/initscripts-1.0-r0/umountfs index e69de29bb2..ec75b0c4a4 100644 --- a/initscripts/initscripts-1.0-r0/umountfs +++ b/initscripts/initscripts-1.0-r0/umountfs @@ -0,0 +1,18 @@ +#! /bin/sh +# +# umountfs Turn off swap and unmount all local filesystems. +# + +PATH=/sbin:/bin:/usr/sbin:/usr/bin + +echo "Deactivating swap..." +swapoff -a + +# We leave /proc mounted. +echo "Unmounting local filesystems..." +mount -o remount,ro /mnt/ram +umount -f -a -r + +mount -o remount,ro / + +: exit 0 diff --git a/initscripts/initscripts-1.0-r0/umountfs-ramses b/initscripts/initscripts-1.0-r0/umountfs-ramses deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/initscripts/initscripts_1.0.oe b/initscripts/initscripts_1.0.oe index e69de29bb2..3fbac631c5 100644 --- a/initscripts/initscripts_1.0.oe +++ b/initscripts/initscripts_1.0.oe @@ -0,0 +1,68 @@ +DESCRIPTION="SysV init scripts" +MAINTAINER="Chris Larson " + +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 + install -m 0755 ${FILESDIR}/bootmisc.sh ${D}/etc/init.d + install -m 0755 ${FILESDIR}/checkroot.sh ${D}/etc/init.d + install -m 0755 ${FILESDIR}/finish ${D}/etc/init.d + install -m 0755 ${FILESDIR}/halt ${D}/etc/init.d + install -m 0755 ${FILESDIR}/hostname.sh ${D}/etc/init.d + install -m 0755 ${FILESDIR}/mountall.sh ${D}/etc/init.d + install -m 0755 ${FILESDIR}/mountnfs.sh ${D}/etc/init.d + install -m 0755 ${FILESDIR}/reboot ${D}/etc/init.d + install -m 0755 ${FILESDIR}/rmnologin ${D}/etc/init.d + install -m 0755 ${FILESDIR}/sendsigs ${D}/etc/init.d + install -m 0755 ${FILESDIR}/single ${D}/etc/init.d + install -m 0755 ${FILESDIR}/umountnfs.sh ${D}/etc/init.d + install -m 0755 ${FILESDIR}/urandom ${D}/etc/init.d +# +# Install device dependent scripts +# + oe_machinstall -m 0755 ${FILESDIR}/banner ${D}/etc/init.d/banner + oe_machinstall -m 0755 ${FILESDIR}/devices ${D}/etc/init.d/devices + oe_machinstall -m 0755 ${FILESDIR}/extractfs ${D}/etc/init.d/extractfs + oe_machinstall -m 0755 ${FILESDIR}/umountfs ${D}/etc/init.d/umountfs +# +# Create runlevel links +# + ln -sf ../init.d/rmnologin ${D}/etc/rc2.d/S99rmnologin + ln -sf ../init.d/rmnologin ${D}/etc/rc3.d/S99rmnologin + ln -sf ../init.d/rmnologin ${D}/etc/rc4.d/S99rmnologin + ln -sf ../init.d/rmnologin ${D}/etc/rc5.d/S99rmnologin + ln -sf ../init.d/sendsigs ${D}/etc/rc6.d/S20sendsigs +# ln -sf ../init.d/urandom ${D}/etc/rc6.d/S30urandom + ln -sf ../init.d/umountnfs.sh ${D}/etc/rc6.d/S31umountnfs.sh +# ln -sf ../init.d/umountfs ${D}/etc/rc6.d/S40umountfs + ln -sf ../init.d/reboot ${D}/etc/rc6.d/S90reboot + ln -sf ../init.d/sendsigs ${D}/etc/rc0.d/S20sendsigs + ln -sf ../init.d/urandom ${D}/etc/rc0.d/S30urandom + ln -sf ../init.d/umountnfs.sh ${D}/etc/rc0.d/S31umountnfs.sh +# ln -sf ../init.d/umountfs ${D}/etc/rc0.d/S40umountfs + ln -sf ../init.d/halt ${D}/etc/rc0.d/S90halt +# ln -sf ../init.d/banner ${D}/etc/rcS.d/S01banner + ln -sf ../init.d/checkroot.sh ${D}/etc/rcS.d/S10checkroot.sh +# ln -sf ../init.d/checkfs.sh ${D}/etc/rcS.d/S30checkfs.sh + ln -sf ../init.d/mountall.sh ${D}/etc/rcS.d/S35mountall.sh +# ln -sf ../init.d/extractfs ${D}/etc/rcS.d/S36extractfs + ln -sf ../init.d/hostname.sh ${D}/etc/rcS.d/S40hostname.sh + ln -sf ../init.d/mountnfs.sh ${D}/etc/rcS.d/S45mountnfs.sh + ln -sf ../init.d/bootmisc.sh ${D}/etc/rcS.d/S55bootmisc.sh + ln -sf ../init.d/urandom ${D}/etc/rcS.d/S55urandom +# ln -sf ../init.d/packages ${D}/etc/rcS.d/S98packages + ln -sf ../init.d/finish ${D}/etc/rcS.d/S99finish +# ln -sf ../init.d/devices ${D}/etc/rcS.d/S01devices +# ln -sf ../init.d/devpts.sh ${D}/etc/rcS.d/S31devpts.sh +# ln -sf ../init.d/ramdisk ${D}/etc/rcS.d/S30ramdisk +} -- cgit v1.2.3