summaryrefslogtreecommitdiff
path: root/initscripts/initscripts-1.0-r0
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2004-02-06 17:29:16 +0000
committerMichael Lauer <mickey@vanille-media.de>2004-02-06 17:29:16 +0000
commit4c15a7aa4221e096108db1e565f4b7ecce0cc9bb (patch)
tree9660d18098d4348581115afb5abc6ff3ce4dbd0c /initscripts/initscripts-1.0-r0
parentda7df0743644604f9d9ff1e6485f676a76c84406 (diff)
initscript uses our new machine scheme now
BKrev: 4023ceecsTzvM20GBlZ38KGiVoso5Q
Diffstat (limited to 'initscripts/initscripts-1.0-r0')
-rw-r--r--initscripts/initscripts-1.0-r0/devices59
-rw-r--r--initscripts/initscripts-1.0-r0/devices_h3600 (renamed from initscripts/initscripts-1.0-r0/banner-simpad)0
-rw-r--r--initscripts/initscripts-1.0-r0/devices_simpad (renamed from initscripts/initscripts-1.0-r0/devices-h3600)0
-rw-r--r--initscripts/initscripts-1.0-r0/extractfs28
-rw-r--r--initscripts/initscripts-1.0-r0/h3600/devices (renamed from initscripts/initscripts-1.0-r0/devices-simpad)0
-rw-r--r--initscripts/initscripts-1.0-r0/packages_default (renamed from initscripts/initscripts-1.0-r0/extractfs-ramses)0
-rw-r--r--initscripts/initscripts-1.0-r0/packages_ramses (renamed from initscripts/initscripts-1.0-r0/packages)0
-rw-r--r--initscripts/initscripts-1.0-r0/ramses/extractfs (renamed from initscripts/initscripts-1.0-r0/packages-ramses)0
-rw-r--r--initscripts/initscripts-1.0-r0/ramses/umountfs (renamed from initscripts/initscripts-1.0-r0/umountfs-ramses)0
-rw-r--r--initscripts/initscripts-1.0-r0/simpad/banner0
-rw-r--r--initscripts/initscripts-1.0-r0/simpad/devices0
-rw-r--r--initscripts/initscripts-1.0-r0/umountfs18
12 files changed, 105 insertions, 0 deletions
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/banner-simpad b/initscripts/initscripts-1.0-r0/devices_h3600
index e69de29bb2..e69de29bb2 100644
--- a/initscripts/initscripts-1.0-r0/banner-simpad
+++ b/initscripts/initscripts-1.0-r0/devices_h3600
diff --git a/initscripts/initscripts-1.0-r0/devices-h3600 b/initscripts/initscripts-1.0-r0/devices_simpad
index e69de29bb2..e69de29bb2 100644
--- a/initscripts/initscripts-1.0-r0/devices-h3600
+++ b/initscripts/initscripts-1.0-r0/devices_simpad
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/devices-simpad b/initscripts/initscripts-1.0-r0/h3600/devices
index e69de29bb2..e69de29bb2 100644
--- a/initscripts/initscripts-1.0-r0/devices-simpad
+++ b/initscripts/initscripts-1.0-r0/h3600/devices
diff --git a/initscripts/initscripts-1.0-r0/extractfs-ramses b/initscripts/initscripts-1.0-r0/packages_default
index e69de29bb2..e69de29bb2 100644
--- a/initscripts/initscripts-1.0-r0/extractfs-ramses
+++ b/initscripts/initscripts-1.0-r0/packages_default
diff --git a/initscripts/initscripts-1.0-r0/packages b/initscripts/initscripts-1.0-r0/packages_ramses
index e69de29bb2..e69de29bb2 100644
--- a/initscripts/initscripts-1.0-r0/packages
+++ b/initscripts/initscripts-1.0-r0/packages_ramses
diff --git a/initscripts/initscripts-1.0-r0/packages-ramses b/initscripts/initscripts-1.0-r0/ramses/extractfs
index e69de29bb2..e69de29bb2 100644
--- a/initscripts/initscripts-1.0-r0/packages-ramses
+++ b/initscripts/initscripts-1.0-r0/ramses/extractfs
diff --git a/initscripts/initscripts-1.0-r0/umountfs-ramses b/initscripts/initscripts-1.0-r0/ramses/umountfs
index e69de29bb2..e69de29bb2 100644
--- a/initscripts/initscripts-1.0-r0/umountfs-ramses
+++ b/initscripts/initscripts-1.0-r0/ramses/umountfs
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
--- /dev/null
+++ b/initscripts/initscripts-1.0-r0/simpad/banner
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
--- /dev/null
+++ b/initscripts/initscripts-1.0-r0/simpad/devices
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